Click here to Skip to main content
15,913,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: How 'cheap' is recursive use of variables ? Pin
BillWoodruff10-Oct-11 20:15
professionalBillWoodruff10-Oct-11 20:15 
GeneralRe: How 'cheap' is recursive use of variables ? Pin
PIEBALDconsult11-Oct-11 2:33
mvePIEBALDconsult11-Oct-11 2:33 
AnswerRe: How 'cheap' is recursive use of variables ? Pin
BobJanova11-Oct-11 1:39
BobJanova11-Oct-11 1:39 
GeneralRe: How 'cheap' is recursive use of variables ? Pin
harold aptroot11-Oct-11 2:54
harold aptroot11-Oct-11 2:54 
GeneralRe: How 'cheap' is recursive use of variables ? Pin
BillWoodruff11-Oct-11 7:28
professionalBillWoodruff11-Oct-11 7:28 
QuestionTcpClient - Detecting closed connections Pin
Grimes10-Oct-11 11:32
Grimes10-Oct-11 11:32 
AnswerRe: TcpClient - Detecting closed connections Pin
BobJanova10-Oct-11 23:24
BobJanova10-Oct-11 23:24 
GeneralRe: TcpClient - Detecting closed connections Pin
Grimes10-Oct-11 23:53
Grimes10-Oct-11 23:53 
Hi thanks for the reply.

You say your library catches SocketException and also ObjectDisposedException and treat that as an indication that the connection has closed.

When does these exceptions get thrown? When you send data?

Say for example I am connected to a remote computer. If his connection closes abruptly, under which conditions will these exceptions get thrown on my machine? Would .Net eventually close\dispose my connection if the connection was closed on the remote machine? I was not aware that it worked that way, maybe I misunderstood what you meant.
KOM UIT DAAAAA!!!

GeneralRe: TcpClient - Detecting closed connections Pin
BobJanova11-Oct-11 1:26
BobJanova11-Oct-11 1:26 
GeneralRe: TcpClient - Detecting closed connections Pin
Grimes11-Oct-11 2:05
Grimes11-Oct-11 2:05 
GeneralRe: TcpClient - Detecting closed connections Pin
Grimes11-Oct-11 0:02
Grimes11-Oct-11 0:02 
GeneralRe: TcpClient - Detecting closed connections Pin
elgaabeb11-Oct-11 2:13
elgaabeb11-Oct-11 2:13 
GeneralRe: TcpClient - Detecting closed connections Pin
Grimes11-Oct-11 2:19
Grimes11-Oct-11 2:19 
GeneralRe: TcpClient - Detecting closed connections Pin
BobJanova11-Oct-11 3:20
BobJanova11-Oct-11 3:20 
AnswerRe: TcpClient - Detecting closed connections Pin
jschell11-Oct-11 9:21
jschell11-Oct-11 9:21 
GeneralRe: TcpClient - Detecting closed connections Pin
Grimes11-Oct-11 19:21
Grimes11-Oct-11 19:21 
QuestionCompare 2 Datatables Pin
jojoba2010-Oct-11 6:13
jojoba2010-Oct-11 6:13 
AnswerRe: Compare 2 Datatables Pin
André Kraak10-Oct-11 8:27
André Kraak10-Oct-11 8:27 
GeneralRe: Compare 2 Datatables Pin
jojoba2010-Oct-11 8:30
jojoba2010-Oct-11 8:30 
GeneralRe: Compare 2 Datatables Pin
André Kraak10-Oct-11 9:30
André Kraak10-Oct-11 9:30 
QuestionFire a C# Event/Delegate in C++, or: EventHandling via DLL Pin
Tonkpils10-Oct-11 4:27
Tonkpils10-Oct-11 4:27 
AnswerRe: Fire a C# Event/Delegate in C++, or: EventHandling via DLL Pin
DaveyM6910-Oct-11 7:09
professionalDaveyM6910-Oct-11 7:09 
GeneralRe: Fire a C# Event/Delegate in C++, or: EventHandling via DLL Pin
Tonkpils13-Oct-11 4:37
Tonkpils13-Oct-11 4:37 
AnswerRe: Fire a C# Event/Delegate in C++, or: EventHandling via DLL Pin
TheGreatAndPowerfulOz10-Oct-11 12:13
TheGreatAndPowerfulOz10-Oct-11 12:13 
GeneralRe: Fire a C# Event/Delegate in C++, or: EventHandling via DLL Pin
Tonkpils11-Oct-11 1:01
Tonkpils11-Oct-11 1:01 

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.