appdomain unload ->System.Threading.ThreadAbortException: Thread was being aborted

J

José Joye

When I unload an appdomain I have created, I always get the following
exeption:

System.Threading.ThreadAbortException: Thread was being aborted.

Before calling the Unload() method, I set to null all the references I have
to objects in the AppDomain.


Any idea?
Thanks,
José
 
W

Willy Denoyette [MVP]

This is by design, a Thread.Abort is performed on all threads in an
application domain that is being unloaded.
It's up to you to handle or ignore the exception.

Willy.
 
J

José Joye

Thanks,

I will hide it...

José
Willy Denoyette said:
This is by design, a Thread.Abort is performed on all threads in an
application domain that is being unloaded.
It's up to you to handle or ignore the exception.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top