Debug Assertion Failed! FIle:afxhtml.inl Line 57的错误的解决
2010-05-22 09:51
561 查看
作者:朱金灿
来源:http://blog.csdn.net/clever101/
同事问我一个奇怪的问题:程序在他的机子上运行的好好的,但是其它人下载了源码之后可以编译通过,但是debug模式下调试运行到应用程序类中的InitInstance函数中的
if (!ProcessShellCommand(cmdInfo))一句时,总是出现一个
Debug Assertion Failed.
File: afxhtml.inl
Line:57
我认为首先需要判断哪个模块导致了这个Debug Assertion Failed。于是我查看调用堆栈,发现最后加载的是一个mfc042d.dll。同事的输出文件夹下有一个mfc042d.dll。但是我想既然是VC 6.0开发的,加载的应该是mfc42d.dll,而不是mfc042d.dll。我初步判断这是加载了错误的DLL库,于是试着删除了输出文件夹下的mfc042d.dll。果然程序没有出现Debug Assertion Failed,能够顺利运行了。
来源:http://blog.csdn.net/clever101/
同事问我一个奇怪的问题:程序在他的机子上运行的好好的,但是其它人下载了源码之后可以编译通过,但是debug模式下调试运行到应用程序类中的InitInstance函数中的
if (!ProcessShellCommand(cmdInfo))一句时,总是出现一个
Debug Assertion Failed.
File: afxhtml.inl
Line:57
我认为首先需要判断哪个模块导致了这个Debug Assertion Failed。于是我查看调用堆栈,发现最后加载的是一个mfc042d.dll。同事的输出文件夹下有一个mfc042d.dll。但是我想既然是VC 6.0开发的,加载的应该是mfc42d.dll,而不是mfc042d.dll。我初步判断这是加载了错误的DLL库,于是试着删除了输出文件夹下的mfc042d.dll。果然程序没有出现Debug Assertion Failed,能够顺利运行了。
相关文章推荐
- Debug Assertion Failed! FIle:afxhtml.inl Line 57的错误的解决
- MFC程序出现“Debug Assertion Failed! File:afx.inl Line:177”错误
- MFC程序出现“Debug Assertion Failed! File:afx.inl Line:177”错误
- Debug Assertion Failed file:afx.inl Line 177
- 关于 debug assertion failed, file:dlgdata.cpp,line"44 错误收藏
- MFC学习笔记之VC++ Debug Assertion Failed! 错误(File: strex.cpp Line: 690)
- VC错误: debug assertion failed; file dlgdata.cpp; line43
- Debug Assertion Failed! File:afx.inl (转载)
- 关于 debug assertion failed, file:dlgdata.cpp,line"43 错误解析
- VC++ Debug Assertion Failed! 错误(File: winmdi.cpp Line: 141)
- Debug Assertion Failed! File:afxwin1.inl Line:22
- Assertion "OSQCreate" failed at line 71 in ..\LWIP\arch\sys_arch.c错误解决方法
- Debug Assertion Failed! File:afx.inl File:afx.inl
- MFC程序出现“Debug Assertion Failed! File:dlgdata.cpp Line: 43 ”错误
- 【技术贴】MFC出错Debug Assertion Failed! File:afx.inl 122
- MFC程序出现“Debug Assertion Failed! File:dlgdata.cpp Line: 43 ”错误
- 关于 debug assertion failed, file:dlgdata.cpp,line"44 错误
- 【技术贴】MFC出错Debug Assertion Failed! File:afx.inl 122
- 调试错误 debug assertion failed; file:dlgdata.cpp; line 43 分析析
- 解决错误:Assertion failed: hunk, file patch.c, line 321