SFML community forums
Help => Audio => Topic started by: penguino on October 26, 2012, 04:13:59 am
-
When I try to run a program that loads and plays a .wav file with SFML 2.0 using Visual Studio 2010 Express I get this error during run time:
The application was unable to start correctly (0xc000007b). Click OK to close the application.
What is wrong and how can I fix this?
-
What does the debugger say, if you debug the application? To me it looks like you forgot to put the audio dll in the executing directory.
-
The debugger says:
'sfml.exe': Loaded 'C:\Users\Public\Music\Sample Music\sfml\Debug\sfml.exe', Symbols loaded.
'sfml.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'sfml.exe': Loaded 'C:\Program Files\Bitdefender\Bitdefender 2013\active virus control\Avc3_00165_008\avcuf32.dll', Cannot find or open the PDB file
The program '[7996] sfml.exe: Native' has exited with code -1073741701 (0xc000007b).
but I did include the correct dlls (openal32.dll;libsndfile-1.dll) into the executable's directory.
But I don't think I would need to include the audio dll because I linked the static version.
-
This is not the debugger, just the regular output.
This error looks like a dependency issue, you should open your executable with dependency walker (Google it) and see if there are some missing DLLs.
-
I tried using dependency walker to find missing dlls. It couldn't find IESHIMS.dll. Is that what is messing up my application?
-
It couldn't find IESHIMS.dll
This one is normal, forget it.
-
Ok. Now dependency walker keeps giving the following errors and warnings:
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module
This is keeping me from profiling the application . . . I think.
Is it possible to fix these problems?
-
This is keeping me from profiling the application . . . I think.
No. Ignore these messages, and look for missing (red) DLLs in the tree.
-
I believe that MSVCR100D.DLL and MSVCP100D.DLL are missing (they are red where it says PI^).
Can you tell me how to fix this?
-
It's the C runtime that your compiler uses. So you do have them ;)