Freigeben über


Handling ThreadAbortException

By definition ThreadAbortException cannot be stopped. Even if you have something like catch (ThreadAbortException) or catch (Exception), the ThreadAbortException invocation will follow the catch blocks. But as soon as the block ends the same exception is raised again.
The only way to eat out this exception is to catch and call Thread.CurrentThread.ResetAbort().
[https://msdn2.microsoft.com/en-us/library/system.threading.thread.resetabort.aspx]

Comments

  • Anonymous
    April 15, 2010
    The comment has been removed
  • Anonymous
    May 27, 2010
    The comment has been removed
  • Anonymous
    June 15, 2011
    I work for City Cabinet Center in San Diego: We are always looking for new ways to keep up the our SEO. I’ve read that blogs are an excellent way for backlinks…HOWEVER…I don’t feel that in the market we are in there is much to “blog” about unless we actually have a customer or potential customer?? Plaes let me know your thoughts? Thanks Kindly!-<a href="www.bootsfanstore.com/replica-steve-madden-1186.html">replica Steve Madden boots</a>