[Mono-devel-list] BeginInvoke - Exception issues

Thomas Harning Jr. harningt at gmail.com
Mon Jun 20 20:38:41 EDT 2005


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.

Is this MS .Net behavior?  I don't think it is.
-- 
Thomas Harning Jr.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050620/48ef7250/attachment.bin 


More information about the Mono-devel-list mailing list