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
Bookmarks