Click here to Skip to main content
15,891,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends,

i have created the application with type dialouge based and integrated the the FranmewinEx as Base class window.when i docuked two Docuable pane classes sentimentally its working fine in release mode.means opening the openGL Enabled contexts are visible and rending the fine..when i run the same code in deburg .its giveing some dubug assertions failures while window creation.
its crash window Thread after that dubug break function.i would like to know the procedure of handle this type of exceptions. and i would like to know will it be resolved with latest MFC releases,
and i have used MFC 10.0 Visual studio 2010 Please provide the guidance for later updates can i use the code 2010 to 2013 visual studio if so please let me know the way of conversion..



thanks and regards
srinivas.
Posted
Updated 9-Sep-13 1:57am
v2

1 solution

Best way (and actually, the only way) to handle assertion failures is to go back to source code and fix the bug.

The assertions are not designed to be handled as other exceptions, which may or may not be acceptable. The purpose of the assertion is to capture the situation when you, as a developer, think that some predicate is always true, so your check it up, but it turns out to be false during runtime. It simply means that you made a bug. An assertion is a development tool, like debugger, tracing and similar things, not a runtime facility.

Please see:
http://en.wikipedia.org/wiki/Assertion_%28computing%29[^].

—SA
 
Share this answer
 
v2

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