AW: [SDL] Possible race condition in SDL_mixer

Sascha Günther s.guenther at lives.de
Wed Apr 11 20:56:04 PDT 2001


This might depend on yur project being a "console-app" (generally based
single-threaded) did you switch to multithreaded-dll in code generation ?
(Better use empty win32 app instead of console app, when compiling with
sdl).

regards,

sascha

-----Ursprüngliche Nachricht-----
Von: owner-sdl at lokigames.com [mailto:owner-sdl at lokigames.com]Im Auftrag
von Olivier Dagenais
Gesendet: Donnerstag, 12. April 2001 03:35
An: sdl at lokigames.com
Betreff: [SDL] Possible race condition in SDL_mixer


Using SDL 1.2.0 with the corresponding SDL_mixer on NT4, if I compile
and run the attached program in the debugger, it usually hangs while
calling Mix_CloseAudio.  (sometimes it doesn't)

If you comment out the SDL_Delay ( 1000 ), all of a sudden I don't get
a hang.

This is happening with VC6 SP5, the program being compiled as a
console app.

Anybody else see this?  I'd rather not have to put a SDL_Delay in my
program and cross my fingers.

I realize programs like this don't come around very often, but this
really threw me off while debugging my program.

Thanks!

--
----------------------------------------------------------------------
Olivier A. Dagenais - Software Architect and Developer








More information about the SDL mailing list