dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pnet-developers] AppDomain ProcessExit not implemented? - Email fou


From: Matt Johnson
Subject: Re: [Pnet-developers] AppDomain ProcessExit not implemented? - Email found in subject
Date: Wed, 23 Aug 2006 22:52:32 -0700

Don't really care about switching between domains.
 
Surely there is some other event I can attach to that is raised just before an application terminates?  I'd set it up in the app itself,  but in this case I need it to be self contained within my dll.
 
On windows, ProcessExit works great:
 
1) app starts
2) my class is used
3) I run some init stuff, subscribe to ProcessExit and set a static flag so I don't do it again.
4) app does it's own thing, plays with other stuff in my dll, whatever.
5) app is done
6) ProcessExit fires and my dll runs it cleanup code
7) app terminates
 
I really don't care what event it is, as long as I can catch a normal exit.  Destructor, finalize, dispose, etc. of my class is out, as there will probably be many instances used throughout the app and I only want init and cleanup to happen once for the lifetime of the app.
 
-Matt
 
 
Deryk Robosson wrote:

> I seem to recall that someone at some stage was working on
> implementing this but for the life of me, I do not remember who that
> was.

2005-10-10  Klaus Treichel  <address@hidden>
...
   * engine/thread.c: Add support for ILExecThreads to switch between
     appdomains

Cheers,
Gopal
--
If I learn from my mistakes, pretty soon I'll know everything.
_______________________________________________
Pnet-developers mailing list
address@hidden
http://dotgnu.org/mailman/listinfo/pnet-developers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]