Registriert seit: 6. Apr 2011
Ort: Berlin
3.073 Beiträge
Delphi 10.4 Sydney
|
AW: Array of Integer und crash
26. Sep 2018, 14:11
Delphi-Quellcode:
// Daten auslesen
if GetPropertyItem(GifImage, PropertyTagFrameDelay, PropSize, FPropItem) = OK then
begin
// Bytearray dimensionieren
SetLength(Prop, PropItem.Length);
CopyMemory(@Prop[0], PropItem.value, PropItem.Length);
Du füllst FPropItem und greifst dann auf PropItem (ohne F) zu.
|