Application Error (0xc0150002) in first project [closed]

asked 2013-03-07 10:52:14 -0600

Curious gravatar image

Hi every body, I want to run my first program but encountering this error:

'Test2.exe': Loaded 'C:\opencv\build\x86\vc9\bin\opencv_core243d.dll', Cannot find or open the PDB file
The program '[14228] Test2.exe: Native' has exited with code -1072365566 (0xc0150002).

i want to do a Win32 project in may x64 system and adding right libraries (x86) right the tutorials said. but cant run it! i use opencv 2.4.3 and vs2010! the program built successfully but when running there is this error:

Test2.exe - Application Error
The application was unable to start correctly (0xc0150002). Click OK to close the application. 

is there anyone help me?

thanks all

p.s: sorry for my bad English...

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-20 11:11:17.927788


Are you trying to do a Release build with the debug libraries (they have 'd' at the end of them)?

awknaust gravatar imageawknaust ( 2013-03-07 14:41:08 -0600 )edit

hmm that should be a warning, not an error in the usual case.

are you compiling with 'warnings as errors' ? (that would explain it)

  • those pdb files are just not part of the 2.4.3. download, ( they're pretty large it's a matter of download size )

  • they are only needed, when you want to step into the library code(eg. core_243.lib) with your debugger.

  • if you really need to do that, you'll have to recompile the opencv libs & dlls using cmake. this will generate the pdb files next to the libs, too.

berak gravatar imageberak ( 2013-03-07 16:56:20 -0600 )edit