TIM邓肯 2016-10-17 11:53 采纳率: 0%
浏览 2574
已结题

未处理的异常,Cannot find or open the PDB file,访问冲突

问题
“Geometry.exe”: 已加载“E:\opencascade\OpenCASCADE6.9.0\opencascade-6.9.0\samples\mfc\standard\win64\vc10\bind\Geometry.exe”,已加载符号。
“Geometry.exe”: 已加载“C:\Windows\System32\ntdll.dll”,Cannot find or open the PDB file
“Geometry.exe”: 已加载“C:\Windows\System32\kernel32.dll”,Cannot find or open the PDB file
“Geometry.exe”: 已加载“C:\Windows\System32\KernelBase.dll”,Cannot find or open the PDB file
“Geometry.exe”: 已加载“E:\opencascade\OpenCASCADE6.9.0\occdll\TKBRep.dll”,未使用调试信息生成二进制文件。
“Geometry.exe”: 已加载“E:\opencascade\OpenCASCADE6.9.0\occdll\TKMath.dll”,未使用调试信息生成二进制文件。
“Geometry.exe”: 已加载“E:\opencascade\OpenCASCADE6.9.0\occdll\TKernel.dll”,未使用调试信息生成二进制文件。
“Geometry.exe”: 已加载“C:\Windows\System32\advapi32.dll”,Cannot find or open the PDB file
“Geometry.exe”: 已加载“C:\Windows\System32\msvcrt.dll”,Cannot find or open the PDB file
“Geometry.exe”: 已加载“C:\Windows\System32\sechost.dll”,Cannot find or open the PDB file
“Geometry.exe”: 已加载“C:\Windows\System32\rpcrt4.dll”,Cannot find or open the PDB file
“Geometry.exe”: 已加载“C:\Windows\System32\user32.dll”,Cannot find or open the PDB file
“Geometry.exe”: 已加载“C:\Windows\System32\gdi32.dll”,Cannot find or open the PDB file
“Geometry.exe”: 已加载“C:\Windows\System32\lpk.dll”,Cannot find or open the PDB file
“Geometry.exe”: 已加载“C:\Windows\System32\usp10.dll”,Cannot find or open the PDB file

原程序
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1995 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.

#include "stdafx.h"

#include
#include
#include
#include
#include
#include

#ifdef AFX_CORE1_SEG
#pragma code_seg(AFX_CORE1_SEG)
#endif

/////////////////////////////////////////////////////////////////////////////
// Standard WinMain implementation
// Can be replaced as long as 'AfxWinInit' is called first

// for cout redefinition :
#include // for _open_osfhandle
#include // for _O_TEXT

#ifdef _DEBUG
#define DISPLAYCONSOLE 1
#endif

int AFXAPI AfxWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPTSTR lpCmdLine, int nCmdShow)
{
#ifdef DISPLAYCONSOLE

// Redirection of standard output to console
int hCrt; BOOL rep; FILE *hf;
_SYSTEM_INFO lps;
GetSystemInfo(&lps);
rep = AllocConsole();
hCrt = _open_osfhandle((long) GetStdHandle(STD_OUTPUT_HANDLE),_O_TEXT);
hf = _fdopen( hCrt, "w" );
*stdout = *hf;
// stop the buffer on stdout
// int i = setvbuf( stdout, NULL, _IONBF, 0 );
// filebuf ff(hCrt);
// cout = &ff;
cout<<"This Debug Window is defined in WinMain.cpp and will disappear in release mode"<<endl;

#endif // DISPLAYCONSOLE // By Matra

// create log file for all OCC messages
// Message::DefaultMessenger()->AddPrinter (new Message_PrinterOStream ("OCCSampleRun.log", Standard_False));

ASSERT(hPrevInstance == NULL);

int nReturnCode = -1;
CWinApp* pApp = AfxGetApp();

// new in 2.0 CAS.CADE uses the standard C++ exception mechanism
/*#ifdef _DEBUG // By Matra
// _Function declaratiob here because you can jump to InitFailure
Standard_ErrorHandler _Function;

#endif // _DEBUG // By Matra
*/
// AFX internal initialization
if (!AfxWinInit(hInstance, hPrevInstance, lpCmdLine, nCmdShow))
goto InitFailure;

// App global initializations (rare)
ASSERT_VALID(pApp);
if (!pApp->InitApplication())
    goto InitFailure;
ASSERT_VALID(pApp);

// Perform specific initializations
if (!pApp->InitInstance())
{
    if (pApp->m_pMainWnd != NULL)
    {
        TRACE0("Warning: Destroying non-NULL m_pMainWnd\n");
        pApp->m_pMainWnd->DestroyWindow();
    }
    nReturnCode = pApp->ExitInstance();
    goto InitFailure;
}
ASSERT_VALID(pApp);

#ifdef _DEBUG // By Matra
Application:

// new in 2.0 CAS.CADE uses the standard C++ exception mechanism

// if(DoesNotAbort(_Function))
try
{
nReturnCode = pApp->Run();
}
// if(_Function.Catches(STANDARD_TYPE(Standard_Failure)))
catch(Standard_Failure)
{
Standard_SStream ostr;
ostr< CString aMsg = ostr.str().c_str();
MessageBoxW (NULL, aMsg, L"CasCade Error", MB_ICONERROR);
goto Application; // restart application loop
}
#else // _DEBUG // By Matra
nReturnCode = pApp->Run();
#endif // _DEBUG // By Matra

ASSERT_VALID(pApp);

InitFailure:
#ifdef _DEBUG
// Check for missing AfxLockTempMap calls
if (AfxGetModuleThreadState()->m_nTempMapLock != 0)
{
TRACE1("Warning: Temp map lock count non-zero (%ld).\n",
AfxGetModuleThreadState()->m_nTempMapLock);
}

AfxLockTempMaps();
AfxUnlockTempMaps();

#endif

AfxWinTerm();

#ifdef DISPLAYCONSOLE // By Matra
// ferme la console pour le cout
fclose( stdout );
//hCrt = _fcloseall(); :-)
rep = FreeConsole();

#endif // DISPLAYCONSOLE // By Matra

return nReturnCode;

}

/////////////////////////////////////////////////////////////////////////////

  • 写回答

1条回答 默认 最新

  • oyljerry 2016-10-17 13:02
    关注

    这个只说相关加载的dll等没有对应的pdb调试信息。但不影响你调用

    评论

报告相同问题?

悬赏问题

  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?