Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: problems with loading and playing .wav files  (Read 4838 times)

0 Members and 3 Guests are viewing this topic.

penguino

  • Newbie
  • *
  • Posts: 5
    • View Profile
problems with loading and playing .wav files
« 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?

Foaly

  • Sr. Member
  • ****
  • Posts: 453
    • View Profile
Re: problems with loading and playing .wav files
« Reply #1 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.

penguino

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: problems with loading and playing .wav files
« Reply #2 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: problems with loading and playing .wav files
« Reply #3 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.
Laurent Gomila - SFML developer

penguino

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: problems with loading and playing .wav files
« Reply #4 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: problems with loading and playing .wav files
« Reply #5 on: October 28, 2012, 08:34:34 pm »
Quote
It couldn't find IESHIMS.dll
This one is normal, forget it.
Laurent Gomila - SFML developer

penguino

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: problems with loading and playing .wav files
« Reply #6 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?
« Last Edit: October 28, 2012, 09:10:06 pm by penguino »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: problems with loading and playing .wav files
« Reply #7 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.
Laurent Gomila - SFML developer

penguino

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: problems with loading and playing .wav files
« Reply #8 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: problems with loading and playing .wav files
« Reply #9 on: November 05, 2012, 10:52:32 pm »
It's the C runtime that your compiler uses. So you do have them ;)
Laurent Gomila - SFML developer

 

anything