F
Faisal
Hi, People
I have written an ftpclient in .net now a strange thing is happening
while debugging every thing is working all right but when i run the
program normally the system hangs on socket.receive() can any body give
me any clues why this would be happening
This is my code snippet
Socket clientSocket = new Socket( AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp );
IPEndPoint Ep=new IPEndPoint(IPAddress.Parse("192.168.1.1");
this.clientSocket.Connect(Ep);
byte[] buffer=new byte[512];
// This is the place where i hang when i run my programming but while
debugging its all ok
int bytesRead=clientSocket.Receive(buffer,buffer.Length,0);
Thanks n Regards to All
I have written an ftpclient in .net now a strange thing is happening
while debugging every thing is working all right but when i run the
program normally the system hangs on socket.receive() can any body give
me any clues why this would be happening
This is my code snippet
Socket clientSocket = new Socket( AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp );
IPEndPoint Ep=new IPEndPoint(IPAddress.Parse("192.168.1.1");
this.clientSocket.Connect(Ep);
byte[] buffer=new byte[512];
// This is the place where i hang when i run my programming but while
debugging its all ok
int bytesRead=clientSocket.Receive(buffer,buffer.Length,0);
Thanks n Regards to All