G
Guest
Hi,
Is it possible to catch event when a .net application process is killed in
order to do the required cleanup? ie. task manager - kill process.
The only way I can think of doing this currently is by using windows
messages to catch the destroy message. From what I've read CLR doesn't appear
to be notified when this happens.
Is there an alternative, and is it possible that not disposing can lead to
memory leaks? I'm investigating an issue where this appears to be happening.
Although the process is killed it looks like some components are still in
memory (not confirmed)
Thanks,
Mike
Is it possible to catch event when a .net application process is killed in
order to do the required cleanup? ie. task manager - kill process.
The only way I can think of doing this currently is by using windows
messages to catch the destroy message. From what I've read CLR doesn't appear
to be notified when this happens.
Is there an alternative, and is it possible that not disposing can lead to
memory leaks? I'm investigating an issue where this appears to be happening.
Although the process is killed it looks like some components are still in
memory (not confirmed)
Thanks,
Mike