Teddy Y

Teddy Y

  • NA
  • 1
  • 0

Unhandle NullReference Exception Server program in .Net 2.0

Mar 20 2007 10:50 PM

Hi all,

My .Net 1.1 Client Server project just converted to .Net 2.0. But when the
client disconnect to server, the server always throw unhandle nullreference
exception (.Net 1.1 never appear it). This exception not must appear, run 10
times would appear 4 times. I tried to use
AppDomain.CurrentDomain.UnhandledException to show the exception message.
Message as

at
System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   at
System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

Anyone can help me? How to solve it?

Thanks you very much