thread-abort

When an ASP.NET System.Web.HttpResponse.End() is called, the current thread is aborted?

Hi folks, when a System.Web.HttpResponse.End() is called a System.Thread.Abort is being fired, which i'm guessing is (or fires) an exception? I've got some logging and this is being listed in the log file... A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll 12/14/2008 01:09:31:: Error i...

SqlClient calls causing "Thread was being aborted at SNINativeMethodWrapper.SNIPacketGetConnection(IntPtr packet)"

I would really appreciate any suggestions, no matter how simple or complex, to help me get this issue isolated and resolved. I have a bit of code that generates small report files. For each file in the collection, a stored proc is executed to get the data via XML reader (its a pretty big result set). When I created all this, and steppe...

How do I suppress a thread.abort() error C# ?

I am showing a splash screen on a background thread while my program loads. Once it loads I am aborting the Thread as it's only purpose was to show a Now Loading splash form. My problem is that when aborting a Thread it throws a ThreadAbortException that the user can just click Continue on. How do I deal with this? I was trying to ...

Problem with the nonresponding threads

Hello there, I have a web application which runs multiple threads on button click each thread making IO call on different ipAddresses ie(login windows account and then making file operations). There is a treshold value of 30 seconds. I assume that while login attempt if the treshold is exceeded, device on ipAddress does not match my con...

In .NET when Aborting Thread, can this piece of code get corrupted?

Little intro: In complex multithreaded aplication (enterprise service bus ESB), I need to use Thread.Abort, because this ESB accepts user written modules which communicates with hardware security modules. So if this module gets deadlocked or hardware stops responding - i need to just unload this module and rest of this server aplicatio...

Handling unexpected end of requests in servlets

Hi, I am currently developing a REST web service with Jersey / Tomcat (but a generic Servlet/Container answer is welcome). If the client does some GET requests on services that return large amount of data, from a MySQL connection. To avoid any OOM exception, I use a streaming mode for MySQL. However, if the client aborts the request ...

Thread.abort_on_exception doesn't work in rake task?

When I run Thread.abort_on_exception = true threads = [] threads << Thread.new do loop { sleep 1 } end threads << Thread.new do loop { sleep 1; raise } end threads.each { |t| t.join } as a straight-up ruby script, the script exits as you'd expect with abort_on_exception set to true. But when I try to run this same code as a ra...

Thread.Abort doesn't seem to throw a ThreadAbortException because of AcceptSocket

I am calling ChannelServer.ListeningThread.Abort on the following thread, however nothing seems to happen. I would like to be more specific, but I can't think of anything more. There seems to be no ThreadAbortException that is thrown, and this exception should be thrown regardless of the blocking listener (it works perfectly on threads t...