Click here to Skip to main content
15,893,588 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem while sending mail from windows service using MSMAPI Pin
Xiangyang Liu 刘向阳23-Nov-03 9:27
Xiangyang Liu 刘向阳23-Nov-03 9:27 
GeneralHelp Displaying Unicode String Pin
WorldNomad19-Nov-03 19:19
WorldNomad19-Nov-03 19:19 
GeneralRe: Help Displaying Unicode String Pin
Heath Stewart20-Nov-03 2:51
protectorHeath Stewart20-Nov-03 2:51 
GeneralRe: Help Displaying Unicode String Pin
WorldNomad20-Nov-03 16:41
WorldNomad20-Nov-03 16:41 
GeneralMake control draw on top of other forms Pin
JacksonBrown196019-Nov-03 12:37
JacksonBrown196019-Nov-03 12:37 
GeneralRe: Make control draw on top of other forms Pin
Heath Stewart20-Nov-03 3:55
protectorHeath Stewart20-Nov-03 3:55 
GeneralRe: Make control draw on top of other forms Pin
JacksonBrown196020-Nov-03 5:11
JacksonBrown196020-Nov-03 5:11 
GeneralProblem testing NetworkStream for remote close Pin
ChiPlastique19-Nov-03 12:25
ChiPlastique19-Nov-03 12:25 
I'm using NetworkStream to read from a TCPClient.

I'm testing DataAvailable before reading to keep by thread from blocking on read.

The docs say that if the remote end has closed the connection, a call to DataAvailable should throw a SocketException, which I canb catch.

Unfortunatly, the exception isn't getting thrown, so my code keeps spinning on DataAvailable forever, never knowing that the connection has been closed. There don't seem to be any other properties or methods in either TCPClient or NetworkStream that I can use to get the connection state without potentially blocking.

Am I missing something? Is there another way to determine if the connection is active without risking a block?

Thanks.
GeneralRe: Problem testing NetworkStream for remote close Pin
Kentamanos19-Nov-03 12:53
Kentamanos19-Nov-03 12:53 
GeneralShell context menu Pin
Ludwig Stuyck19-Nov-03 11:14
Ludwig Stuyck19-Nov-03 11:14 
GeneralRe: Shell context menu Pin
Heath Stewart19-Nov-03 18:48
protectorHeath Stewart19-Nov-03 18:48 
QuestionHow to get Internet Eplorer Selected Text? Pin
Utku KAYA19-Nov-03 10:30
Utku KAYA19-Nov-03 10:30 
AnswerRe: How to get Internet Eplorer Selected Text? Pin
Heath Stewart19-Nov-03 18:33
protectorHeath Stewart19-Nov-03 18:33 
GeneralRe: How to get Internet Eplorer Selected Text? Pin
Judah Gabriel Himango20-Nov-03 4:36
sponsorJudah Gabriel Himango20-Nov-03 4:36 
GeneralRe: How to get Internet Eplorer Selected Text? Pin
Heath Stewart20-Nov-03 7:17
protectorHeath Stewart20-Nov-03 7:17 
GeneralRe: How to get Internet Eplorer Selected Text? Pin
Utku KAYA21-Nov-03 11:25
Utku KAYA21-Nov-03 11:25 
GeneralRe: How to get Internet Eplorer Selected Text? Pin
Heath Stewart22-Nov-03 11:13
protectorHeath Stewart22-Nov-03 11:13 
General.NET : DEBUG and RELEASE problem Pin
youssef19-Nov-03 9:30
youssef19-Nov-03 9:30 
GeneralRe: .NET : DEBUG and RELEASE problem Pin
Heath Stewart19-Nov-03 18:29
protectorHeath Stewart19-Nov-03 18:29 
GeneralCOM Interop problem Pin
Jose Vicente19-Nov-03 5:05
Jose Vicente19-Nov-03 5:05 
GeneralRe: COM Interop problem Pin
Heath Stewart19-Nov-03 8:45
protectorHeath Stewart19-Nov-03 8:45 
GeneralUsing a HWND from another application. Pin
mhand7519-Nov-03 5:04
mhand7519-Nov-03 5:04 
GeneralRe: Using a HWND from another application. Pin
John Arlen19-Nov-03 8:35
John Arlen19-Nov-03 8:35 
Generalfastest active directory access Pin
thilol19-Nov-03 4:02
thilol19-Nov-03 4:02 
GeneralRe: fastest active directory access Pin
Heath Stewart19-Nov-03 4:20
protectorHeath Stewart19-Nov-03 4:20 

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.