This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: c++ char exceptions
- From: "Michael D. Crawford" <crawford at goingware dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 23 Apr 2002 03:23:59 -0500
- Subject: Re: c++ char exceptions
> 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/