请任何人帮我解开这些谜团吗? [英] Please can anyone help me in unravelling these mysteries?

查看:104
本文介绍了请任何人帮我解开这些谜团吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是一个visual studio 2010构建输出,用于生成错误的项目。



1.为什么错误消息:无法找到或打开PDB文件?可以解释一下。解决方案是什么?



2.任何人都可以解释如何解决抛出的以下异常:

MyApp.exe中0x002d757e处的未处理异常:0xC0000005:访问冲突读取位置0xcdcdcdcd。



生成异常的行可在以下位置找到:



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))//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定义如下:




CChildFrame is defined as shown:

#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()
};





而MySplitter定义如下:



while MySplitter is defined below:

#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:



< br $>
















'MyApp.exe':已加载'D:\Projects \ MyApp \Debug \ MyApp.exe',符号已加载。

'MyApp.exe':已加载'C:\ Windows \ System32 \ antdll.dll',无法找到或打开PDB文件

'MyApp.exe ':已加载'C:\ Windows \ System32 \ kernel32.dll',无法找到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \ System32 \ KernelBase.dll',无法找到或打开PDB文件

'MyApp.exe':已加载'D:\Projects \ MyApp\Debug \IsVariable.dll',符号已加载。

'MyApp.exe':已加载'C:\ Windows \ System32 \ msvcr100d.dll',已加载符号。

'MyApp.exe':已加载d:\Projects\MyApp\Debug\VFName.dll ',符号已加载。

'MyApp.exe':已加载'D:\Projects \ MyApp \Debug \ GFName.dll',符号已加载。

'MyApp.exe':已加载'C:\ Windows \ System32 \ mfc100ud.dll',已加载符号。

'MyApp.exe':已加载'C:\ Windows \ System32 \ user32.dll',无法找到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \ System32 \ gdi32.dll',无法找到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \ System32 \ lpk.dll',无法找到或打开PDB文件

'MyApp .exe':已加载'C:\ Windows \ System32 \ usp10.dll',无法找到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \\ \\ System32 \msvcrt.dll',无法找到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \ System32 \ shlwapi.dll',找不到或者打开PDB文件

'MyApp.exe':已加载' C:\ Windows\winsxs \ x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16385_none_421189da2b7fabfc\comctl32.dll',无法找到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \ System32 \ msimg32.dll',无法找到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \ System32 \ oleaut32 .dll',无法找到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \ System32 \ ole32.dll',无法找到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \ System32 \rpcrt4.dll',无法找到或打开PDB文件

'MyApp.exe' :已加载'C:\ Windows \ System32 \ws2_32.dll',无法找到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \ system32 \\ \\ nsi.dll',无法找到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \ System32 \ addvapi32.dll',Canno找到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \ System32 \sechost.dll',无法找到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \ System32 \ imm32.dll',无法找到或打开PDB文件

'MyApp.exe':已加载'C :\ Windows \ System32 \ msctf.dll',无法找到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \ System32 \ uxtheme.dll ',找不到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \ System32 \ ddmapi.dll',无法找到或打开PDB文件
'MyApp.exe':已加载'C:\ Windows \ System32 \ mfc100enu.dll',二进制文件未使用调试信息构建。

'MyApp.exe':加载'C:\ Windows \ System32 \ Shell32.dll',无法找到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \ system32 \ cryptbase.dll',无法找到或打开在PDB文件中

'MyApp.exe':已加载'C:\ Windows \ System32 \cryptsp.dll',无法找到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \ System32 \ rsaenh.dll',无法找到或打开PDB文件

'MyApp.exe':已加载'C:\ Windows \ System32 \ RpcRtRemote.dll',找不到或打开PDB文件

'MyApp.exe':加载'C:\ Windows \ System32 \ clbcatq.dll',不能查找或打开PDB文件

警告:密钥'MyApp.Document'的注册数据库更新失败。

MyApp.exe中0x002d757e的第一次机会异常:0xC0000005:Access违规读取位置0xcdcdcdcd。

MyApp.exe中0x002d757e处的未处理异常:0xC0000005:访问冲突读取位置0xcdcdcdcd。

程序'[2964] MyApp.exe:Native'已退出代码-1073741819(0xc0000005)。











'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).

推荐答案

Yon从未分配一个值 m_wndSplitter ,因此它指向垃圾。
Yon never assigned a value to m_wndSplitter, hence it is pointing to garbage.


这篇关于请任何人帮我解开这些谜团吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆