Hello,
First of all I want to thank Laurent for SFML and everyone who posts on these forums for posting useful questions and information. I kind of feel ashamed for asking for help as my first post, but I mostly just read the forums so that's why.
Problem: Running program causes massive amount of Win32 threads exit for seemingly random time between 5 seconds and never, which causes performance loss. Only happens when I use anything from SFML\Audio.hpp (edit: except sf::Listener). It might be something about the sound .dlls that are being loaded and I'm looking more into them right now.
Minimal reproduction code:
#define _tWinMain wWinMain
#include <SFML\Audio.hpp>
#include <SFML\Graphics.hpp>
int main(void) {
sf::Sound sound;
sf::Event Event;
sf::RenderWindow App(sf::VideoMode(600, 400, 32), "App");
while(1)
{
if(App.PollEvent(Event));
}
}
Debug information:
'test3.exe': Loaded 'C:\Users\User\Documents\Visual Studio 2010\Projects\p\Debug\test3.exe', Symbols loaded.
'test3.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Users\User\Documents\Visual Studio 2010\Projects\p\Debug\sfml-window-d-2.dll', Symbols loaded.
'test3.exe': Loaded 'C:\Users\User\Documents\Visual Studio 2010\Projects\p\Debug\sfml-system-d-2.dll', Symbols loaded.
'test3.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'test3.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded.
'test3.exe': Loaded 'C:\Windows\SysWOW64\opengl32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\glu32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Users\User\Documents\Visual Studio 2010\Projects\p\Debug\sfml-graphics-d-2.dll', Symbols loaded.
'test3.exe': Loaded 'C:\Users\User\Documents\Visual Studio 2010\Projects\p\Debug\sfml-audio-d-2.dll', Symbols loaded.
'test3.exe': Loaded 'C:\Windows\SysWOW64\OpenAL32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Users\User\Documents\Visual Studio 2010\Projects\p\Debug\libsndfile-1.dll', Binary was not built with debug information.
'test3.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\MMDevAPI.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\propsys.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\wdmaud.drv', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\ksuser.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\avrt.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\AudioSes.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\msacm32.drv', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\msacm32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\midimap.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\ct_oal.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\clbcatq.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\CTDPROXY.DLL', Binary was not built with debug information.
'test3.exe': Unloaded 'C:\Windows\SysWOW64\CTDPROXY.DLL'
'test3.exe': Unloaded 'C:\Windows\SysWOW64\ct_oal.dll'
'test3.exe': Loaded 'C:\Windows\SysWOW64\wrap_oal.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\dsound.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\powrprof.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0x152c) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x21d4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x2338) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x2328) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x232c) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xba4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x9ac) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x9e0) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1608) has exited with code 0 (0x0).
'test3.exe': Unloaded 'C:\Windows\SysWOW64\wrap_oal.dll'
'test3.exe': Loaded 'C:\Windows\SysWOW64\wrap_oal.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\nvoglv32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\version.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0x744) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1734) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1540) has exited with code 0 (0x0).
'test3.exe': Loaded 'C:\Windows\SysWOW64\dinput.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\hid.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0x2040) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x5c8) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x2080) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1f34) has exited with code 0 (0x0).
... x ~2850
-> Close
The thread 'Win32 Thread' (0xb7c) has exited with code -1073741510 (0xc000013a).
The thread 'Win32 Thread' (0x23c0) has exited with code -1073741510 (0xc000013a).
The thread 'Win32 Thread' (0x21ac) has exited with code -1073741510 (0xc000013a).
The thread 'Win32 Thread' (0x151c) has exited with code -1073741510 (0xc000013a).
The thread 'Win32 Thread' (0x221c) has exited with code -1073741510 (0xc000013a).
The thread 'Win32 Thread' (0x21f0) has exited with code -1073741510 (0xc000013a).
The thread 'Win32 Thread' (0x2128) has exited with code -1073741510 (0xc000013a).
The thread 'Win32 Thread' (0x215c) has exited with code -1073741510 (0xc000013a).
The thread 'Win32 Thread' (0x1410) has exited with code -1073741510 (0xc000013a).
The thread 'Win32 Thread' (0x1330) has exited with code -1073741510 (0xc000013a).
The thread 'Win32 Thread' (0x9ac) has exited with code -1073741510 (0xc000013a).
The thread 'Win32 Thread' (0x22c0) has exited with code -1073741510 (0xc000013a).
The thread 'Win32 Thread' (0x2334) has exited with code -1073741510 (0xc000013a).
The program '[9100] test3.exe: Native' has exited with code -1073741510 (0xc000013a).
WITHOUT sf:Sound sound;
'test3.exe': Loaded 'C:\Users\User\Documents\Visual Studio 2010\Projects\p\Debug\test3.exe', Symbols loaded.
'test3.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Users\User\Documents\Visual Studio 2010\Projects\p\Debug\sfml-window-d-2.dll', Symbols loaded.
'test3.exe': Loaded 'C:\Users\User\Documents\Visual Studio 2010\Projects\p\Debug\sfml-system-d-2.dll', Symbols loaded.
'test3.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'test3.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded.
'test3.exe': Loaded 'C:\Windows\SysWOW64\opengl32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\glu32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Users\User\Documents\Visual Studio 2010\Projects\p\Debug\sfml-graphics-d-2.dll', Symbols loaded.
'test3.exe': Loaded 'C:\Users\User\Documents\Visual Studio 2010\Projects\p\Debug\sfml-audio-d-2.dll', Symbols loaded.
'test3.exe': Loaded 'C:\Windows\SysWOW64\OpenAL32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Users\User\Documents\Visual Studio 2010\Projects\p\Debug\libsndfile-1.dll', Binary was not built with debug information.
'test3.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\nvoglv32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\version.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0x9c0) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1790) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x220c) has exited with code 0 (0x0).
'test3.exe': Loaded 'C:\Windows\SysWOW64\dinput.dll', Cannot find or open the PDB file
'test3.exe': Loaded 'C:\Windows\SysWOW64\hid.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0x23a0) has exited with code -1073741510 (0xc000013a).
The thread 'Win32 Thread' (0x20e8) has exited with code -1073741510 (0xc000013a).
The thread 'Win32 Thread' (0x20dc) has exited with code -1073741510 (0xc000013a).
The thread 'Win32 Thread' (0x1bbc) has exited with code -1073741510 (0xc000013a).
The program '[8572] test3.exe: Native' has exited with code -1073741510 (0xc000013a).