[Openal-devel] Initializing openal/alut second time crashes.

Sven Panne Sven.Panne at aedion.de
Sun Feb 26 08:04:18 PST 2006


Am Sonntag, 26. Februar 2006 09:04 schrieb Joni Yrjana:
> On Sat, 2006-02-25 at 20:33 +0200, Joni Yrjana wrote:
> > I'm trying to make it possible in my application to turn sound on and
> > off whenever user wants to. But after trying to initialize OpenAL/alut
> > second time after closing it, the program crashes. As far as I can tell
> > reading the manual, this should be possible to do. [...]

Uh, oh....! While investigating the behaviour you've described, I've just 
found a static (i.e. "global") variable in alcMakeContextCurrent, which I've 
never seen before. :-( I'm not completely sure yet what the original author 
intended to do, but I'm quite convinced already that a global variable here 
is wrong. I'll have to put on my thinking cap to fix this in the right way, 
which should happen in the next few days. In the meantime you can use your 
patch, which is probably only a workaround for a deeper problem, I fear.

Thanks for pointing this out,
   S.



More information about the Openal-devel mailing list