c++ char exceptions

Michael D. Crawford crawford@goingware.com
Tue Apr 23 01:48:00 GMT 2002


 > You threw const char*

That shouldn't matter.  At the worst it should mean that the exception is not 
caught by any of the catch clauses given, so the "return 0" would be taken.

The only thing that should happen to an exception object after you're done with 
it is that objects thrown by value are destroyed.  In this case the pointer 
would be destroyed, but the memory it points to should not be deleted or anything.

Usually throwing a pointer is not what you really want to do, but it shouldn't 
cause a crash.

Michael D. Crawford
GoingWare Inc. - Expert Software Development and Consulting
http://www.goingware.com/
crawford@goingware.com

    Tilting at Windmills for a Better Tomorrow.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list