Thanks, that helped me track down the problem. I used a relative Uri for my
test on the DownloadFileAsync method without setting the BaseAddress
property for the WebClient. But why doesn't a try/catch block around that
call catch that exception?
>Thanks, that helped me track down the problem. I used a relative Uri for my
>test on the DownloadFileAsync method without setting the BaseAddress
>property for the WebClient. But why doesn't a try/catch block around that
>call catch that exception?
Don't know if it is exactly the answer to your question, but
exceptions can only be caught in the thread from which they originate.
(For example, ActiveMovie exceptions cannot usually be caught, since
AM usually starts multiple threads.)
>>> I'm trying to delete off a 0-byte file that gets created after trying to
>>> download from a bad URL, but I'm getting an IOException that says that
[quoted text clipped - 12 lines]
>>> class
>>> (Downloader). What am I doing wrong here?
--
Phillip Crews aka Severian
Microsoft MVP, Windows SDK
Posting email address is real, but please post replies on the newsgroup.
James Park - 25 Jun 2005 16:52 GMT
Ah, that makes sense. Thanks.
>>Thanks, that helped me track down the problem. I used a relative Uri for
>>my
[quoted text clipped - 31 lines]
> Microsoft MVP, Windows SDK
> Posting email address is real, but please post replies on the newsgroup.