This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]