Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:

C++
BOOL CChildFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
	if( !CMDIChildWndEx::OnCreateClient(lpcs,pContext))
	{
		return FALSE;
	}
	
	if(!m_wndSplitter->CreateStatic(this,1,3,WS_CHILD))//This the line generation the exception
	{
		return FALSE;
	}


	//Calculate the size of splitter
	SIZE size;
	CRect rect;
	GetClientRect(&rect);
	size.cx = (rect.right - m_wndSplitter->GetSplitterWidth())/3;
	size.cy = rect.bottom;

	//Set the views
	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));

	//Show the splitter
	m_wndSplitter->ShowWindow(SW_SHOWNORMAL);
	m_wndSplitter->UpdateWindow();

	return TRUE;
}



CChildFrame is defined as shown:
C++
#include"MySplitter.h"

class CChildFrame : public CMDIChildWndEx
{
	DECLARE_DYNCREATE(CChildFrame)
public:
	CChildFrame();

// Attributes
protected:
	CMySplitter *m_wndSplitter;
public:

// Operations
public:
	CMySplitter *GetSplitter() const { return m_wndSplitter;} 
// Overrides
	public:
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

// Implementation
public:
	virtual ~CChildFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()
};


while MySplitter is defined below:
C++
#pragma once


// CMySplitter

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).
Posted
Updated 22-May-14 0:31am
v2
Comments
Jochen Arndt 22-May-14 6:33am    
'Cannot find or open the PDB file'
This is not an error message. It is a debug output informing you that the program database for the specific DLL does not exist and the debug symbols can't be loaded.
Gbenbam 22-May-14 6:43am    
Isn't that a problem. If it is a problem how do I resolve it?
Jochen Arndt 22-May-14 8:20am    
It's not a problem: It's neither an error nor a warning.
Just an information telling you that no debug data are available for the specific module. If you are debugging your application to find errors they are usually located in your code and not in the system DDLs. So there is no need to have this information loaded.

1 solution

Yon never assigned a value to m_wndSplitter, hence it is pointing to garbage.
 
Share this answer
 
Comments
Gbenbam 22-May-14 7:06am    
You are quite right.I never created a new CMySlpitter object in the default constructor.
[no name] 23-May-14 9:14am    
5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900