With the two above debug options demo02 and demo03 of
sdl4fpc 1.2.0.0 crash
on FPC 2.0.0/Linux and FPC 2.0.4/Win32:
(these crash reports also used -gl to get a line number)
pointer $0808C0F0 does not point to valid memory block
No
heap dump by heaptrc unit
Exitcode = 204
Runtime error 204 at $0805E365
$0805E365
$08049506 main, line 95 of demo02.pp
pointer $0808BFA0 does not point to valid memory block
No
heap dump by heaptrc unit
Exitcode = 204
Runtime error 204 at $0805E95D
$0805E95D
$080492AB RENDER_BALL, line 95 of demo03.pp
$080497DF main, line 180 of demo03.pp
The culprit in the cases I've looked it is
SDL_CreateRGBSurface, but there may be more functions
causing this kind of error. These seem to be "harmless"
memory errors, since the program works fine - I suspect
what is being detected as a leak is probably just
allocations from the C code - but it gets in the way of
finding errors in my own program. Can it be fixed? I'm
going to start looking...
|