Re: Delegates and Exceptions
From: DT (dt_at_nospam.co.uk)
Date: 01/05/05
- Next message: Jon Skeet [C# MVP]: "Re: Delegates and Exceptions"
- Previous message: UAError: "Re: Windows 2003 Service"
- In reply to: Jon Skeet [C# MVP]: "Re: Delegates and Exceptions"
- Next in thread: Jon Skeet [C# MVP]: "Re: Delegates and Exceptions"
- Reply: Jon Skeet [C# MVP]: "Re: Delegates and Exceptions"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 5 Jan 2005 19:05:08 -0000
I thought that because the callback executes on the main thread in my
example I could propagate the exception on that thread.
I guess my new question is how to detect exceptions in the threadpool?
Thanks again
"Jon Skeet [C# MVP]" <skeet@pobox.com> wrote in message
news:MPG.1c463908e9d65bf398bb9a@msnews.microsoft.com...
> AC <anonymous@discussions.microsoft.com> wrote:
>> Sorry I guess I'm being thick here. But that was what I
>> wanted to do in the first place. In the callback routine
>> I simple wanted to throw the exception so it gets
>> propagated up the call stack.
>>
>> Would it be possible to point me at a simple example?
>
> Which thread's stack are you expecting it to get propagated up?
>
> --
> Jon Skeet - <skeet@pobox.com>
> http://www.pobox.com/~skeet
> If replying to the group, please do not mail me too
- Next message: Jon Skeet [C# MVP]: "Re: Delegates and Exceptions"
- Previous message: UAError: "Re: Windows 2003 Service"
- In reply to: Jon Skeet [C# MVP]: "Re: Delegates and Exceptions"
- Next in thread: Jon Skeet [C# MVP]: "Re: Delegates and Exceptions"
- Reply: Jon Skeet [C# MVP]: "Re: Delegates and Exceptions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|