المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : AppDomain problem...



C# Programming
08-03-2009, 04:21 AM
I have a service loader process which, unsuprisingly, loads services in a different AppDomain (according to a configuration and such).

Now my problem is, one the service throw an exception (in a System.Threading.Timer.Tick event) and it stops the process!
I was expecting only the AppDomain to die.

Can someone explain to me what can I do?
I.e. how to make sure an exception is not going to shut down my whole application but only a single AppDomain.


Note: I know for reasonably sure the error is not some nasty native memory corruption, as, it is a simple SqlException

A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.