Results 1 to 5 of 5

Thread: Debugging an SDL2 application raise floting point error

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Thanks for help.

    I#m using SDL 2 Headers from https://github.com/ev1313/Pascal-SDL-2-Headers

    Windows 8.1 with Delphi 2009 or Lazarus 1.6:
    <pre>
    program SDL2Test;

    uses SDL2;

    begin
    if (SDL_Init(
    SDL_INIT_VIDEO
    or SDL_INIT_AUDIO
    or SDL_INIT_TIMER
    //or SDL_INIT_JOYSTICK
    //or SDL_INIT_HAPTIC
    //or SDL_INIT_GAMECONTROLLER
    ) = 0) then begin
    SDL_Quit();
    end;

    end.
    </pre>

    Very simple, nothing special, this program stopps after fpe exception is raised inside both ide's. Comment "or SDL_INIT_TIMER" out, i can debug the program. Using any option of SDL_INIT_TIMER / SDL_INIT_JOYSTICK / SDL_INIT_HAPTIC / SDL_INIT_GAMECONTROLLER raise the exception. This is on Windows 8.1.

    Same program on Ubuntu 16.04 raise fpe exception if SDL_INIT_VIDEO used, any other option can be used with out problems.

    Very strange.

    Thomas
    Last edited by KidPaddle; 07-12-2016 at 06:57 AM.

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
  •