PC Review


Reply
Thread Tools Rate Thread

Catching Exceptions across threads (RE: HttpWebRequest)

 
 
Danny
Guest
Posts: n/a
 
      19th Dec 2003
Hi.

I have an app that is using HttpWebRequest to get data from Web sites.
Occasionally, the CLR throws an IO exception in System.dll that reads
"cannot read from the transport connection." This exception is thrown on
another thread (I am guessing a system thread pool thread). As such, I
cannot catch the exception in the thread from which I invoked the request!

This is very frustrating because ideally, I would like to ignore the
exception and keep fetching more documents from other URLs.

Any suggestions on how to handle this dilemma? I dont control the code from
which the exception gets thrown so I dont have any recourse from my main
thread.

Thanks!

-Danny-


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Catching Exceptions Jeffrey Walton Microsoft C# .NET 5 25th Nov 2007 12:05 AM
Catching non-UI threads' exceptions. BLUE Microsoft C# .NET 1 26th May 2007 02:34 PM
Catching exceptions thrown from threads? Alex Microsoft C# .NET 2 22nd Feb 2006 06:13 AM
Catching Exceptions across threads (RE: HttpWebRequest) Danny Microsoft Dot NET Framework 6 21st Dec 2003 03:48 PM
Catching exceptions from threads Ron James Microsoft VC .NET 5 24th Nov 2003 09:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:03 PM.