Below is a visual studio 2010 build output for a projec generating the "errors".
1. Why the "error" message :Cannot find or open the PDB file?Can any one explain.What is the solution?
2.Can anyone explain how I can resolve the following exception that was thrown:
Unhandled exception at 0x002d757e in MyApp.exe: 0xC0000005: Access violation reading location 0xcdcdcdcd.
The line generating the exception is found in:
BOOL CChildFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
if( !CMDIChildWndEx::OnCreateClient(lpcs,pContext))
{
return FALSE;
}
if(!m_wndSplitter->CreateStatic(this,1,3,WS_CHILD)) {
return FALSE;
}
SIZE size;
CRect rect;
GetClientRect(&rect);
size.cx = (rect.right - m_wndSplitter->GetSplitterWidth())/3;
size.cy = rect.bottom;
m_wndSplitter->CreateView(0,0,RUNTIME_CLASS(CDisplayView),size,pContext);
m_wndSplitter->CreateView(0,1,RUNTIME_CLASS(CClassManagerView),size,pContext);
m_wndSplitter->CreateView(0,2,RUNTIME_CLASS(CCalcView),size,pContext);
SetActiveView((CView *)m_wndSplitter->GetPane(1,2));
m_wndSplitter->ShowWindow(SW_SHOWNORMAL);
m_wndSplitter->UpdateWindow();
return TRUE;
}
CChildFrame is defined as shown:
#include"MySplitter.h"
class CChildFrame : public CMDIChildWndEx
{
DECLARE_DYNCREATE(CChildFrame)
public:
CChildFrame();
protected:
CMySplitter *m_wndSplitter;
public:
public:
CMySplitter *GetSplitter() const { return m_wndSplitter;}
public:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
public:
virtual ~CChildFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
DECLARE_MESSAGE_MAP()
};
while MySplitter is defined below:
#pragma once
class CMySplitter : public CSplitterWndEx
{
DECLARE_DYNAMIC(CMySplitter)
public:
CMySplitter();
virtual ~CMySplitter();
int GetSplitterWidth() const { return m_cxSplitter;}
protected:
DECLARE_MESSAGE_MAP()
};
Please how do I resolve these issues:
'MyApp.exe': Loaded 'D:\Projects\MyApp\Debug\MyApp.exe', Symbols loaded.
'MyApp.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'D:\Projects\MyApp\Debug\IsVariable.dll', Symbols loaded.
'MyApp.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.
'MyApp.exe': Loaded 'D:\Projects\MyApp\Debug\VFName.dll', Symbols loaded.
'MyApp.exe': Loaded 'D:\Projects\MyApp\Debug\GFName.dll', Symbols loaded.
'MyApp.exe': Loaded 'C:\Windows\System32\mfc100ud.dll', Symbols loaded.
'MyApp.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16385_none_421189da2b7fabfc\comctl32.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\msimg32.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\ws2_32.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\nsi.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\uxtheme.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\dwmapi.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\mfc100enu.dll', Binary was not built with debug information.
'MyApp.exe': Loaded 'C:\Windows\System32\shell32.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\cryptbase.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\cryptsp.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\rsaenh.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\RpcRtRemote.dll', Cannot find or open the PDB file
'MyApp.exe': Loaded 'C:\Windows\System32\clbcatq.dll', Cannot find or open the PDB file
Warning: registration database update failed for key 'MyApp.Document'.
First-chance exception at 0x002d757e in MyApp.exe: 0xC0000005: Access violation reading location 0xcdcdcdcd.
Unhandled exception at 0x002d757e in MyApp.exe: 0xC0000005: Access violation reading location 0xcdcdcdcd.
The program '[2964] MyApp.exe: Native' has exited with code -1073741819 (0xc0000005).