> I'm not familiar with TRY\CATCH. I supose it's some M$ non- 
> standardisation. You certainly don't have to delete exception objects 
> on stanrd C++ (try\catch) unless of course you throw an 
> exception that 
> is allocated on the heao and (in C++) that is just mad!

TRY\CATCH are the original macros that you used to handle exceptions.  It
also has a END_CATCH.  They are perfectly correct and valid macros for
catching exceptions.  I think that END_CATCH does the deleting.  Any
Cexception derived exception has a Delete() member and I believe it is that
that should be called. But I am unsure.

Version 6 (or possibly 4?) of visual c++ introduced the keywords try and
catch. I am positive that the books I have read on exceptions refer to
deleting the exceptions thrown unless you are using the macros.

> HAve you read any text books on exceptions? If not, I can 
> recomend The 
> C++ Standard Library by Nico Josuttis. Every serious C++ Programmer
> should have that.

OK.

Andrew


This email and any attached files are confidential and copyright protected.
If you are not the addressee, any dissemination of this communication is
strictly prohibited. Unless otherwise expressly agreed in writing, nothing
stated in this communication shall be legally binding.



_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription 
changes, and list archive.

Reply via email to