Results 1 to 2 of 2

Thread: SIGSEGV when running SDL app compiled with FPC

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    SIGSEGV when running SDL app compiled with FPC

    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...

  2. #2

    SIGSEGV when running SDL app compiled with FPC

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •