![]() |
Zugriffsverletzung
Folgendes Problem:
Delphi-Quellcode:
Diese Zeile ergibt BoundsError.
VAR
bin_data: PByteArray; // Size 89967 p: Byte p := bin_data[Origin]; // Origin > 32767, Rangechecking ein Im CPU-Fenster steht
Code:
Ist diese Einschränkung auf 32k-1 irgendwo dokumentiert?
[SIZE="10"]LoadTables.665: p := bin_data[Origin]
00584099 8B45B8 mov eax,[ebp-$48] 0058409C 8B00 mov eax,[eax] 0058409E 3DFF7F0000 cmp eax,$00007fff // Vergleich auf 32767!!! 005840A3 7605 jbe $005840aa 005840A5 E8E200E8FF call @BoundErr[/SIZE] |
AW: Zugriffsverletzung
Zitat:
Für Faulenzer : type TByteArray = array [0..32767] of Byte; |
AW: Zugriffsverletzung
Sorry, in meiner Hilfdatei (D2005) steht dazu:
"PByteArray TByteArray (declared in SysUtils). Used to typecast dynamically allocated memory for array access." |
AW: Zugriffsverletzung
Sinnvoll ist auch ein Blick in die aktuelle Hilfe:
![]() Zitat:
|
AW: Zugriffsverletzung
Zitat:
Gruß K-H |
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:10 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz