-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: AshvilD
Message 4 in Discussion

Hi,

Generally, to recover from 'OutOfMemoryException and StackOverflowException' 
type of exceptions thrown by the CLR, you would have to shut down your 
application. So, if you want, you should catch these type of exceptions in 
your main app class using the generic Exception class. You do not have to 
catch these exceptions in all functions...

However, if you make a call which could throw an exception, i.e requesting 
an unavailable resource could throw an exception. Now these are the type of 
exceptions where you know the actual exception being thrown and you would 
know how to handle such a situation gracefully are the places where you 
catch using try catch.

In cases where there is a high possibility of an exception being thrown, use 
error handling code instead. i.e Check for null objects before calling a 
method on the object.

Hope i have answered your query.

Regards,
Orina
www.orina.org

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar � get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to