Using the latest sfml2 snapshot (SFML-732b789) I'm getting a pretty consistent audio crash upon exit, sometimes the program hangs, sometimes it just returns odd values and manages to shutdown.
The callstack upon crash is:
#0 76B64CBC ole32!CoVrfCheckThreadState() (C:\Windows\syswow64\ole32.dll:??)
#1 76B64C26 ole32!CoVrfCheckThreadState() (C:\Windows\syswow64\ole32.dll:??)
#2 76B64D3C ole32!CoVrfCheckThreadState() (C:\Windows\syswow64\ole32.dll:??)
#3 76B65446 ole32!CoVrfCheckThreadState() (C:\Windows\syswow64\ole32.dll:??)
#4 76B65A5B ole32!CoFileTimeToDosDateTime() (C:\Windows\syswow64\ole32.dll:??)
#5 76B65916 ole32!CoFileTimeToDosDateTime() (C:\Windows\syswow64\ole32.dll:??)
#6 76B65877 ole32!CoFileTimeToDosDateTime() (C:\Windows\syswow64\ole32.dll:??)
#7 76B65830 ole32!CoFileTimeNow() (C:\Windows\syswow64\ole32.dll:??)
#8 74FBE880 DirectSoundCaptureCreate() (C:\Windows\SysWOW64\dsound.dll:??)
#9 74FBE668 DirectSoundCaptureCreate() (C:\Windows\SysWOW64\dsound.dll:??)
#10 74FBE43A DirectSoundCaptureCreate() (C:\Windows\SysWOW64\dsound.dll:??)
#11 74FC3EA0 DirectSoundCaptureCreate() (C:\Windows\SysWOW64\dsound.dll:??)
#12 74FBE43A DirectSoundCaptureCreate() (C:\Windows\SysWOW64\dsound.dll:??)
#13 74FC35E9 DirectSoundCaptureCreate() (C:\Windows\SysWOW64\dsound.dll:??)
#14 74FC3A7C DirectSoundCaptureCreate() (C:\Windows\SysWOW64\dsound.dll:??)
#15 74FC3646 DirectSoundCaptureCreate() (C:\Windows\SysWOW64\dsound.dll:??)
#16 64055006 alcCloseDevice() (D:\My Documents\Repo\Prog\bin\Debug\openal32.dll:??)
#17 00000000 0x07c80048 in ??() (??:??)
#18 00000000 0x00000001 in ??() (??:??)
#19 00000000 0x0028fdbc in ??() (??:??)
#20 00000000 0x003b2f88 in ??() (??:??)
#21 6278181A ~AudioDevice(this=0x4) (D:\My Documents\Software\SFML2-732b789\src\SFML\Audio\AudioDevice.cpp:85)
#22 00000000 0x00000003 in ??() (??:??)
This is using codeblocks 10.05 with mingw32 4.4.1 on win 7 64 bit. The same problem does not occur when the program is run in linux. I'm using the extlibs/bin/x86 dlls that were supplied with this snapshot.
Any ideas would be appreciated! Is this likely to be something i'm doing wrong, or a possible bug?