473,387 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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é
Nov 16 '05 #1
2 4622
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.

"José Joye" <jo*******@KILLTHESPAMSbluewin.ch> wrote in message
news:uA**************@TK2MSFTNGP10.phx.gbl...
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é

Nov 16 '05 #2
Thanks,

I will hide it...

José
"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:uK**************@TK2MSFTNGP09.phx.gbl...
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.

"José Joye" <jo*******@KILLTHESPAMSbluewin.ch> wrote in message
news:uA**************@TK2MSFTNGP10.phx.gbl...
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é


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: stu_pb | last post by:
I am designing a plugin system for a window application using .NET(C# specifically). One of the requirements of the plugin system is to be able to dynamically load/unload plugins. My initial...
6
by: Mitch | last post by:
My background thread is being terminated when my application exixts. However, it does not receive a ThreadAbortException so I am unable to cleanly diconnect from a remote object (which makes the...
6
by: Wal Turner | last post by:
Hi there. There are various snippets on forums regarding issues with AppDomain.Unload and how it just doesnt work. Fortunately, I got it working with the base case, after much fiddling. Consider...
13
by: Mark | last post by:
Hi, Normally in what kind of situation system will abort a thread created manually ? And how do I know the thread is aborted by system after I start it? Thanks! Mark
1
by: BuddyWork | last post by:
I think I've found a possible issue with .Net AppDomain.Unload when using attribute LoaderOptimization.MultiDomain. Here you will need ProcessExplorer from SysInternals to see what assemblies...
5
by: John Richardson | last post by:
Quick question about the UnhandledException event and associated Handler. I just implemented this handler for the first time, and am surprised that it this event is being raised for an exception...
22
by: JPSutor | last post by:
when I use the AppDomain.UnLoad method (which calls the Thread.Abort method), I get the following error message AppDomain can not be unloaded because the thread 1378 can not be unwound out of it...
2
by: Lars Netzel | last post by:
Hi I have a Form that on Form_Load() does some heavy database reading and I want to show that as a progressbar ontop of the main window.. I want to create a smaller Form with a progressbar.....
0
by: Zeya | last post by:
Situation: Using C#, ASP.Net Requirement: 1. ASP.net application with virtual hosting service. 2. Requires a service that will run every predefined frequency in minutes (2, 30, 100, 10000)...
3
by: =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?= | last post by:
Hi, I am running a web service which sometimes throws exceptions. I have a lot of error trapping within the web service, but I have missed the current problem. I am working on the current issue,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.