none
OpenCV ; Cannot find or open the PDB file

    Question

  • After debugging the code in MS VS 2010 Ultimate following errors appears

    'OpenCV_helloworld.exe': Loaded 'C:\Users\ALI\Documents\Visual Studio 2010\Projects\OpenCV_helloworld\Debug\OpenCV_helloworld.exe', Symbols loaded.
    'OpenCV_helloworld.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
    'OpenCV_helloworld.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
    'OpenCV_helloworld.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
    'OpenCV_helloworld.exe': Loaded 'C:\OpenCV2.1\bin\cxcore210d.dll', Cannot find or open the PDB file
    The program '[2076] OpenCV_helloworld.exe: Native' has exited with code -1072365566 (0xc0150002).

    A window also appears displaying the message 'The application was unable to start correctly(0xc0150002).Click OK to close the application'

    Here is the code for loading an image which I used

     

    #include "stdafx.h"
    
    #include <cv.h>
    #include <cxcore.h>
    #include <highgui.h>
    
    int _tmain(int argc, _TCHAR* argv[])
    {
      // Open the file.
      IplImage *img = cvLoadImage("phot.jpg");
      if (!img) {
        printf("Error: Couldn't open the image file.\n");
        return 1;
      }
    
      // Display the image.
      cvNamedWindow("Image:", CV_WINDOW_AUTOSIZE);
      cvShowImage("Image:", img);
    
      // Wait for the user to press a key in the GUI window.
      cvWaitKey(0);
    
      // Free the resources.
      cvDestroyWindow("Image:");
      cvReleaseImage(&img);
      
      return 0;
    }
    

     

    Please help.

    I saw one of the post regarding PDB file error.It instructed to Go to Tools menu--->Options---->Debugging---->Symbols--->click the radio button for insert symbols and OK Then Debug menu--->Start without Debugging but the same error window appeared.

     


    Wednesday, May 25, 2011 11:54 AM

Answers

All replies

  • You can check with the following link

    http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/c57af4c3-564a-474a-89ec-02ac1c33d733/


    Thanks and Regards Selvam http://www15.brinkster.com/selvamselvam/
    • Marked as answer by jawed_ali Wednesday, May 25, 2011 12:46 PM
    Wednesday, May 25, 2011 11:59 AM
  • Thanks for the link but as I am new to Visual Studio as well as OpenCV i couldn't understand about WinSXS Environment and also when i executed sxstrace.exe it momentarily appeared and then disappeared.I am using Windows 7.Please help.
    Wednesday, May 25, 2011 12:21 PM
  •  

    Yes...

    Is it possible that this is still a 64bit-VS-32bit problem??

    I'm using Windows 7 64bit + Visual Studio 2010 + OpenCV SVN 7243. Everything compiles and builds, but nothing is able to run till now. My current output when trying to run the OpenCV example "peopledetect" is

     

    'peopledetect.exe': Loaded 'C:\opencv\opencv\build\bin\Debug\peopledetect.exe', Symbols loaded.
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\opencv\opencv\build\bin\Debug\opencv_core232d.dll', Symbols loaded.
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\glu32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\opengl32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\opencv\opencv\build\bin\Debug\opencv_highgui232d.dll', Symbols loaded.
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\avifil32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\msacm32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\msvfw32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\avicap32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\version.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Qt\4.8.0\bin\QtOpenGLd4.dll', Symbols loaded.
    'peopledetect.exe': Loaded 'C:\Qt\4.8.0\bin\QtGuid4.dll', Symbols loaded.
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\comdlg32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Qt\4.8.0\bin\QtCored4.dll', Symbols loaded.
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll', Symbols loaded (source information stripped).
    'peopledetect.exe': Loaded 'C:\Qt\4.8.0\bin\QtTestd4.dll', Symbols loaded.
    'peopledetect.exe': Loaded 'C:\opencv\opencv\build\bin\Debug\opencv_objdetect232d.dll', Symbols loaded.
    'peopledetect.exe': Loaded 'C:\opencv\opencv\build\bin\Debug\opencv_imgproc232d.dll', Symbols loaded.
    The program '[6480] peopledetect.exe: Native' has exited with code -1073741701 (0xc000007b).
    

     


    The only word in event log is

    The application was unable to start correctly (0xc000007b). Click OK to close the application

     

    It's weird anyway...Is it a potential problem between 64bits and 32bits?

     

    Pei

     


    Welcome to Vision Open <url>http://www.visionopen.com</url>
    • Edited by jiapei101 Saturday, February 04, 2012 7:20 AM
    Saturday, February 04, 2012 7:19 AM