Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

assertion failed! (vc++ 1.52)

Status
Not open for further replies.

croakyfrog

Technical User
Dec 4, 2001
51
GB
i have an app where you enter some info in one form, click ok and it brings up data related to that in another form.

however, when the ok button is clicked it says: assertion failed! then gives wincoreapp line 182, so i press ignore and it brings up the same error box but referring to winctrl.

if i press ignore again then it brings up the form i am expecting.

has anyone experienced this or similar before and do they have any suggestions?

:eek:)
 
To find out exactly what's causing the assertion, run your program in Debug mode with no breakpoints defined. When the assertion occurs and the dialog appears asking you if you wish to debug, click yes and retry to debug it. You will probably find yourself in some of Micorsofts MFC code somewhere in the debugger. However, you'll be able to clearly see from the function name/etc. what it is that's causing your assertion - ie. invalid window pointer, GDI object or whatever. That should give you some clues as to whats happening and where.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top