[SDL] Division by zero makes program hang
Ryan C. Gordon
icculus at icculus.org
Tue Feb 27 18:20:57 PST 2007
> As I'm using the windib driver, is it possible that some other library
> I'm linking to is changing the FPU flag? I'm using SDL_image, SDL_mixer,
> SDL_gfx, SDL_ttf and their supporting libraries, zlib, libpng, smpeg,
> vorbis, mikmod, freetype and others, all of them included in the binary
> distributions. I wrote the rest of the code myself, and can state that
> I'm not messing with FPU flags (I don't even know how to mess with them :-)
Short of stepping through it in a debugger and watching what function
got called when the FPU control register changed, I can't really guess.
Does DirectSound change it, too? You might be using that in SDL, even
with windib.
Also, you can always forcibly change it back in your own app with
something like _controlfp() or an __asm__ block, once you figure out the
point where it's getting changed.
--ryan.
More information about the SDL
mailing list