// <summary>
// .. this method can be used to handle and log Exceptions that are not //handled by the CLR
// </summary>
[HandleProcessCorruptedStateExceptions]
public static void HandleCorruptedState()
{
// Write Exception Notification code here , can log or send mail to admin etc.
}
Individual managed methods can override the defaults and catch these exceptions by applying the HandleProcessCorruptedStateExceptions attribute to the method.
System.Runtime.ExceptionServices namespace will provide this class.
vinh loiPosted Nov 19, 2015, 8:58 PM
can you post full source code? please