View Full Version : SIGSEGV when running SDL app compiled with FPC

13-01-2005, 11:57 PM
This doesn't happen all the time, but I'm getting this error, It sometimes goes away without changing any SDL code but it's always to do with the surface pointer. I set it to nil, then do SDL_SetVideoMode. check to see if it returned -1 and check the pointer which got returned to see if it's nil... it's all good.

Then when I call SDL_flip or SDL_updaterect, it crashes with a SIGSEGV. It doesn't make any sense to me. It was doing it yesterday and then it started working, now it's broke again.

Please, if you know what's going on, point me in the right direction...

15-01-2005, 12:41 AM
It appears that this is an optimisation problem caused by me removing the jedi-sdl.inc file and rebuilding. Something was going horribly wrong. I pasted the code from the jedi-sdl.inc file into the top of sfont.pas and sdlutils386.pas and did a clean rebuild, and it works again now.