Async DNS

  • Thread starter Thread starter Simon Johnson
  • Start date Start date
S

Simon Johnson

Hi all

I'm writing a DNS app using the Dns classes provided in the framework. I
want to use the asynchronous operations but I'm having trouble trapping
errors from the Dns.EndResolve function. When it fails to resolve the
Dns.EndResolve doesn't through an exception it just stops code execution
where it is.. Is there any way I can trap errors in a DNS lookup using
the async methods?

Si.
 
Hi all

I'm writing a DNS app using the Dns classes provided in the framework. I
want to use the asynchronous operations but I'm having trouble trapping
errors from the Dns.EndResolve function. When it fails to resolve the
Dns.EndResolve doesn't through an exception it just stops code execution
where it is.. Is there any way I can trap errors in a DNS lookup using
the async methods?

Si.

You have to catch and deal with the exception in the asynch methods
AFAIR.
 
Back
Top