调试断言失败 [英] Debug Assertion failed

查看:110
本文介绍了调试断言失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...
我尝试从我的应用程序生成msword格式的报告时遇到此错误..


程式:D:\ 4.5.1TwinMain \ TWIN \ TWin.exe
文件:C:\ Program Files \ Microsoft Visual Studio 8 \ VC \ atlmfc \ include \ atlwin.h
线路:3004
表达式:: IsWindow(m_hWnd)


如何摆脱这个问题..
请建议...
在此先感谢

Hi...
i am getting this error while trying for generating report in msword format from my application..


Program:D:\4.5.1TwinMain\TWIN\TWin.exe
File:C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlwin.h
Line:3004
Expression::IsWindow(m_hWnd)


how to get rid of this problem..
pls suggest...
thanks in advance

推荐答案

当引发此断言时,通常意味着您正在调用MFC框架中不包含此元素的GUI元素"还不存在(例如尚未创建的窗口).查看调用堆栈,以了解您打了什么电话以及打了什么电话.如果您发布了一些代码,我可能会指导您解决问题.
When this assertion is being thrown, it typically means that you''re making a call into the MFC framework to a GUI element that doesn''t exist yet (such as a window that hasn''t been created yet). Look at the call stack to figure out what call you made and to what. If you post some of the code I can probably guide you into how to fix it.


感谢您输入Albert ...
我会在调用堆栈中看到...
thanks for input Albert...
i will see in callstack...


这篇关于调试断言失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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