Click here to Skip to main content
16,005,241 members
Home / Discussions / C#
   

C#

 
GeneralRe: Unhandled Exception Pin
EssOEss23-Jul-05 3:57
EssOEss23-Jul-05 3:57 
GeneralRe: Unhandled Exception Pin
Mingzhi_8623-Jul-05 17:46
Mingzhi_8623-Jul-05 17:46 
GeneralText in a listview column Pin
Haim Yulzari23-Jul-05 2:52
Haim Yulzari23-Jul-05 2:52 
GeneralRe: Text in a listview column Pin
Anonymous23-Jul-05 18:30
Anonymous23-Jul-05 18:30 
GeneralRe: Text in a listview column Pin
Haim Yulzari24-Jul-05 1:49
Haim Yulzari24-Jul-05 1:49 
Generalsigning and strong names Pin
dirkhelmet!@yahoo.com23-Jul-05 2:13
dirkhelmet!@yahoo.com23-Jul-05 2:13 
GeneralRe: signing and strong names Pin
Rob Graham23-Jul-05 4:19
Rob Graham23-Jul-05 4:19 
GeneralWSA Cancell Blocking Call Socket Exception Pin
meetsukant23-Jul-05 1:55
meetsukant23-Jul-05 1:55 
Hi experts ,
I am faceing a exception in my Socket programm.
I am created a TCPListner() and it it wait's for TcpClient() request.
After connecting server to client i am sending some txt file content as String through NetWork stream to client. Again When Client Disconnect, it send some same file content after modification to server .

Now When i am closing the Server , I get a WSACancelBlocking Exception.
I am Giving Some Code What i am doing in server and Client :

Server ()
{
using namespace System.net.socket ;
-----
----

DoListen()
{


listener = new TcpListener(PORT_NUM);
listener->Start();
Byte bytes[] = new Byte[10000];
String* m_sdata = 0;
While (true)
{
UserConnection *client = new UserConnection(listener->AcceptTcpClient());
__hook(&UserConnection::LineReceived, client, OnLineReceived);
}//End of while(true);


}


}/* end of server */


Client()
{

Byte data[] = new Byte[1200]
Byte data1[] = new Byte[1200];
Int32 port = 10000;
//writting data to Stream.

}

Now When i close the Server File i got two Exception
1. ASCII Encodding Exception
2. WSA CancelBlocking CAll Exception.

Please i need the Solution for this.
Please help me..









sukanta
Generalexpression evaluation Pin
khalouda23-Jul-05 0:07
khalouda23-Jul-05 0:07 
GeneralRe: expression evaluation Pin
S. Senthil Kumar23-Jul-05 0:35
S. Senthil Kumar23-Jul-05 0:35 
GeneralRe: expression evaluation Pin
khalouda23-Jul-05 3:13
khalouda23-Jul-05 3:13 
GeneralRe: expression evaluation Pin
Dario Solera24-Jul-05 10:55
Dario Solera24-Jul-05 10:55 
GeneralProblem in adding bool check column to datagrid. Pin
amrutajoshi22-Jul-05 23:13
amrutajoshi22-Jul-05 23:13 
GeneralRe: Problem in adding bool check column to datagrid. Pin
Srinivas Jonnalagadda23-Jul-05 7:55
Srinivas Jonnalagadda23-Jul-05 7:55 
GeneralRe: Problem in adding bool check column to datagrid. Pin
Wyxlwiis23-Jul-05 10:35
Wyxlwiis23-Jul-05 10:35 
GeneralMarshal.PtrToStructure gives gibberish Pin
EssOEss22-Jul-05 22:41
EssOEss22-Jul-05 22:41 
GeneralRe: Marshal.PtrToStructure gives gibberish Pin
EssOEss23-Jul-05 9:04
EssOEss23-Jul-05 9:04 
GeneralInfragistics tutorials Pin
dhol22-Jul-05 21:41
dhol22-Jul-05 21:41 
Generali think re-draw listview's VScrollBar Pin
yanzhengguang22-Jul-05 20:15
yanzhengguang22-Jul-05 20:15 
GeneralRe: i think re-draw listview's VScrollBar Pin
yanzhengguang22-Jul-05 20:18
yanzhengguang22-Jul-05 20:18 
GeneralRe: i think re-draw listview's VScrollBar Pin
yanzhengguang22-Jul-05 20:21
yanzhengguang22-Jul-05 20:21 
GeneralRe: i think re-draw listview's VScrollBar Pin
yanzhengguang24-Jul-05 16:11
yanzhengguang24-Jul-05 16:11 
GeneralWinForm and Console - same time Pin
...---...22-Jul-05 12:50
...---...22-Jul-05 12:50 
GeneralRe: WinForm and Console - same time Pin
EssOEss22-Jul-05 20:51
EssOEss22-Jul-05 20:51 
Generaldraw something over all Pin
Sasuko22-Jul-05 11:48
Sasuko22-Jul-05 11:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.