Click here to Skip to main content
15,899,124 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello all,I want to use Grid control in tabCtrl ,but I encount a assert.what can I do? Thank you!
C++
Degug Assertion Failed!
Program :GridTest.exe
File:D:\..\gridcell.cpp Line:228
Posted
Updated 5-Aug-12 17:44pm
v2
Comments
linrulei11 6-Aug-12 0:38am    
Thank you very much! I have find where the assertion is triggerd ,in gridcell.cpp line:288, “ VERIFY(SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &ncm, 0));”.By the way ,where can I download a demo(C++) that use CGridCtrl and TabCtrl?Thank very much!

1 solution

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).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900