T
ttrudeau
Currently, I'm playing with some ideas on recycling application components
for a service application when the individual parts die, because of an OOM.
As a start to this I created a secondary AppDomain and created an instance of
a class in that application domain that throws an OutOfMemoryException on an
interval.
I hooked up the AppDomain.UnhandledException event, but it isn't getting
called. I can watch the output that says, "A first chance exception of type
'System.OutOfMemoryException' occurred in ..." But, nothing happens and the
class seems to continue on its merry way. The error is thrown by an event
handler (handling the Timer.Elapsed event).
What is the proper way to handle exceptions in this context?
for a service application when the individual parts die, because of an OOM.
As a start to this I created a secondary AppDomain and created an instance of
a class in that application domain that throws an OutOfMemoryException on an
interval.
I hooked up the AppDomain.UnhandledException event, but it isn't getting
called. I can watch the output that says, "A first chance exception of type
'System.OutOfMemoryException' occurred in ..." But, nothing happens and the
class seems to continue on its merry way. The error is thrown by an event
handler (handling the Timer.Elapsed event).
What is the proper way to handle exceptions in this context?