Degug断言失败! gridcell.cpp行:228 [英] Degug Assert Failed! gridcell.cpp Line:228

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

问题描述

大家好,我想在tabCtrl中使用Grid控件,但是遇到一个assert.我该怎么办?谢谢!

Hello all,I want to use Grid control in tabCtrl ,but I encount a assert.what can I do? Thank you!

Degug Assertion Failed!
Program :GridTest.exe
File:D:\..\gridcell.cpp Line:228

推荐答案

转到查看断言语句并查看其内容(例如,断言可能正在检查CWnd是否具有与之关联的有效HWND).接下来,从触发断言的位置开始向后跟踪调用堆栈,找出导致您断言的哪个调用,并找出导致该断言的原因(例如,我见过的一个常见错误是人们试图甚至在创建窗口之前(例如在CWnd构造函数中)访问窗口控件.
Go to the assertion statement and see what it''s telling you (for example, an assertion may be checking whether a CWnd has a valid HWND associated with it). Next, follow the call stack backwards from the point where the assertion was triggered and find out which one of your calls led to the assertion and figure out why it triggered it (for example, a common mistake I''ve seen is people trying to access window controls before the window has even been created, like in a CWnd constructor).


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

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