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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top