This error happens under Windows XP, but not under Windows7.
When network is unplugged and I try to asynchronously send SNMP request, an unhandled exception is thrown inside the library and there is no way to catch it. Whole application crashes.
Steps to reproduce:
1. compile attached code
2. Physically Plug out network cable so that you see message "network cable is unplugged"
3. Run program
Result: What you see is application crash message with option to send a report to Microsoft.
Expected: either "Exception catched" mesage or "ProcessResponse function executed! Result is: ..." message.
What I managed to discover is that exception is NullReferenceException thrown in UdpTransport.cs, at line 301 (ReceiveBegin() function).