gflRotate access violation (Delphi)
Posted: Sat Apr 24, 2004 2:21 pm
Hi,
i have ported my (Delphi) pet project Cheez to Gfl SDK 2.01.
Everything works fine (and i use most functions in Gfl SDK) except gflRotate() and gflRotateFine().
I get an access violation when using these two functions. The image gets rotated but it seems there is some kind of memory corruption because my program crashes shortly after the rotate (and i can see in the debugger that after the call to gflRotate some objects are destroyed/invalid).
If i replace the one line containing gflRotate() with ANY other function (gflFlipVertical, gflFlipHorizontal, gflBlur, gflBrightness etc) there is no problem, even under extensive testing.
I have tried both modes of calling the function (with and without a destination surface) but both crash... e.g.
e := gflRotate(gfl_bmp, nil, Angle);
or
e := gflRotate(gfl_bmp, gfl_bmp_dst, Angle);
e returns gfl_no_error (so everything seems normal)
Does anyone have any idea what might be causing this?
Thanks,
Dimitris
i have ported my (Delphi) pet project Cheez to Gfl SDK 2.01.
Everything works fine (and i use most functions in Gfl SDK) except gflRotate() and gflRotateFine().
I get an access violation when using these two functions. The image gets rotated but it seems there is some kind of memory corruption because my program crashes shortly after the rotate (and i can see in the debugger that after the call to gflRotate some objects are destroyed/invalid).
If i replace the one line containing gflRotate() with ANY other function (gflFlipVertical, gflFlipHorizontal, gflBlur, gflBrightness etc) there is no problem, even under extensive testing.
I have tried both modes of calling the function (with and without a destination surface) but both crash... e.g.
e := gflRotate(gfl_bmp, nil, Angle);
or
e := gflRotate(gfl_bmp, gfl_bmp_dst, Angle);
e returns gfl_no_error (so everything seems normal)
Does anyone have any idea what might be causing this?
Thanks,
Dimitris