SFML community forums

Help => Audio => Topic started by: penguino on October 26, 2012, 04:13:59 am

Title: problems with loading and playing .wav files
Post 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?
Title: Re: problems with loading and playing .wav files
Post by: Foaly on October 26, 2012, 06:12:42 am
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.
Title: Re: problems with loading and playing .wav files
Post by: penguino on October 26, 2012, 07:44:56 pm
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.
Title: Re: problems with loading and playing .wav files
Post by: Laurent on October 26, 2012, 07:52:03 pm
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.
Title: Re: problems with loading and playing .wav files
Post by: penguino on October 28, 2012, 08:19:52 pm
I tried using dependency walker to find missing dlls. It couldn't find IESHIMS.dll. Is that what is messing up my application?
Title: Re: problems with loading and playing .wav files
Post by: Laurent on October 28, 2012, 08:34:34 pm
Quote
It couldn't find IESHIMS.dll
This one is normal, forget it.
Title: Re: problems with loading and playing .wav files
Post by: penguino on October 28, 2012, 08:57:14 pm
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?
Title: Re: problems with loading and playing .wav files
Post by: Laurent on October 28, 2012, 10:46:35 pm
Quote
This is keeping me from profiling the application . . . I think.
No. Ignore these messages, and look for missing (red) DLLs in the tree.
Title: Re: problems with loading and playing .wav files
Post by: penguino on November 05, 2012, 09:21:03 pm
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?
Title: Re: problems with loading and playing .wav files
Post by: Laurent on November 05, 2012, 10:52:32 pm
It's the C runtime that your compiler uses. So you do have them ;)