Hi
Hi,
I used to manipulate 8bit bitmap scanlines and pixels in the folowing way.
type
PConstRGB8s = ^TConstRGB8s;
TConstRGB8s = Packed Array[0..cMaxPixelWidth-1] of Byte;
TPConstRGB8sArray = Packed Array of PConstRGB8s;
.....
var
aScanlines : TPConstRGB8sArray;
....
Setlength( aScanlines, bmp.Height);
for i:=0 to bmp.Height-1 do
aScanlines[i] := bmp.Scanline[i];
...
someByteValue := aScanLines[0]^[0]; // access violation here in Win64
It works fine in win32 plateform.
Then I compile it in win64, show no error.
But after I run it, it show accees violation when step into "someByteValue := aScanLines[ay]^[ax];";
Can someone help?
Thanks.
Daniel
I used to manipulate 8bit bitmap scanlines and pixels in the folowing way.
type
PConstRGB8s = ^TConstRGB8s;
TConstRGB8s = Packed Array[0..cMaxPixelWidth-1] of Byte;
TPConstRGB8sArray = Packed Array of PConstRGB8s;
.....
var
aScanlines : TPConstRGB8sArray;
....
Setlength( aScanlines, bmp.Height);
for i:=0 to bmp.Height-1 do
aScanlines[i] := bmp.Scanline[i];
...
someByteValue := aScanLines[0]^[0]; // access violation here in Win64
It works fine in win32 plateform.
Then I compile it in win64, show no error.
But after I run it, it show accees violation when step into "someByteValue := aScanLines[ay]^[ax];";
Can someone help?
Thanks.
Daniel
Comments
Post a Comment