MFC 调试断言失败 wincore.cpp/afxwin.inl
当我调用 Domodal 来创建对话框时,我得到调试断言失败。 我已在函数的 InitDialog 开头插入断点,但在此之前它失败了。 curser 不会来到 my Init 函数,在此之前它会失败。 如何解决这个问题。
这不是固定的,有时可以正常工作,但有时会失败。
When I call the the Domodal, to create the dialog, I get the debug assertion failed.
I have inserted the break point at starting of InitDialog of my function, but before that it fails. curser will not come to the my Init function, Before that it fails.
How to solve this problem.
This is not fixed, some times it works fine but sometimes fails.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来像是无法加载的资源 ID,或者无法创建对话框上的控件。将对话框的属性“子创建失败”或类似的属性更改为“false”,看看这是否是问题所在。如果是,并且您的对话框启动,则很容易看出缺少哪个控件。
否则,将代码和调用堆栈发布到该位置。
Sounds like a resource ID that could not be loaded, or a control on the dialog that could not be created. Change the property of the dialog 'fail on child creation' or something like that to 'false' to see if that is the issue. If it is, and your dialog launches, it's easy to see which control is missing.
Otherwise, post the code at that location, and your call stack.