A
Alex J.
I just started to learn C# (my background is in C++), and right now I
study the sockets, TCP/IP etc... so, I found a usefull source code at:
http://www.codeguru.com/Csharp/Csharp/cs_network/sockets/article.php/c8781/.
But there is a scenarion that throw a strange exception. So, the client
is connected to the server, I send a message from client to server and
viceversa and than I stop the server from the 'x' button from the right-up
corner; in that moment the client throw System.NullReferenceException:
An unhandled exception of type 'System.NullReferenceException' occurred
in system.dll
Additional information: Object reference not set to an instance of an
object.
the cursor is placed here:
000000a0 0F B6 F0 movzx esi,al
and the Call Stack stopped here:
system.dll!System.Net.Sockets.OverlappedAsyncResult.CompletionPortCallback(uint
errorCode = 64, uint numBytes = 0, System.Threading.NativeOverlapped*
nativeOverlapped = 1750608) + 0xa0 bytes
There is a solution?
Thank you in advance.
..:Alex:.
study the sockets, TCP/IP etc... so, I found a usefull source code at:
http://www.codeguru.com/Csharp/Csharp/cs_network/sockets/article.php/c8781/.
But there is a scenarion that throw a strange exception. So, the client
is connected to the server, I send a message from client to server and
viceversa and than I stop the server from the 'x' button from the right-up
corner; in that moment the client throw System.NullReferenceException:
An unhandled exception of type 'System.NullReferenceException' occurred
in system.dll
Additional information: Object reference not set to an instance of an
object.
the cursor is placed here:
000000a0 0F B6 F0 movzx esi,al
and the Call Stack stopped here:
system.dll!System.Net.Sockets.OverlappedAsyncResult.CompletionPortCallback(uint
errorCode = 64, uint numBytes = 0, System.Threading.NativeOverlapped*
nativeOverlapped = 1750608) + 0xa0 bytes
There is a solution?
Thank you in advance.
..:Alex:.