How to handle assert() in Windows GUI apps?
Jonathan M Davis
jmdavisProg at gmx.com
Thu Apr 7 17:50:41 PDT 2011
On 2011-04-07 14:19, Andrej Mitrovic wrote:
> Everything works fine now, please disregard my silly thread. :)
Well, whatever you're doing, you almost certainly shouldn't be catching Errors
(AssertErrors or otherwise). That's generally a very bad idea. Very little
cleanup is done when Errors are thrown. finally blocks get skipped. scope
statements get skipped. Destructors get skipped. Etc. So, once an Error is
thrown, it takes very little for the program to be in an invalid state.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list