[Mono-devel-list] BeginInvoke - Exception issues

Gonzalo Paniagua Javier gonzalo at ximian.com
Mon Jun 20 21:46:39 EDT 2005


On Mon, 2005-06-20 at 20:38 -0400, Thomas Harning Jr. wrote:
> I'm using the asynchronous version of Dns.Resolve - Dns.BeginResolve
> and when an exception is thrown for a missing host, I get 2 exceptions.
> 
> 1 is inside the async call, and another is reported with EndResolve
> in the callback.
> Shouldn't the async call one be 'hidden'?
> It's being printed to the console and is somewhat disconcerting to
> be unable to catch it to cleanup output and such.
> For a time I was hunting around to see where in my code the
> exception was thrown, and it was nowhere to be found.  I had already
> caught the EndResolve one and put it to use.

File a bug report in bugzilla with a test case and I'll fix it.

-Gonzalo





More information about the Mono-devel-list mailing list