Click here to Skip to main content
16,004,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: Remove instance Pin
RishiKasnia24-Nov-08 16:43
RishiKasnia24-Nov-08 16:43 
QuestionSetting Socket.ReceiveBufferSize Pin
HosamAly24-Nov-08 0:40
HosamAly24-Nov-08 0:40 
AnswerRe: Setting Socket.ReceiveBufferSize Pin
Mark Salsbery24-Nov-08 7:14
Mark Salsbery24-Nov-08 7:14 
GeneralRe: Setting Socket.ReceiveBufferSize Pin
HosamAly24-Nov-08 20:43
HosamAly24-Nov-08 20:43 
GeneralRe: Setting Socket.ReceiveBufferSize Pin
Mark Salsbery25-Nov-08 5:42
Mark Salsbery25-Nov-08 5:42 
Questionsmart card Pin
ellllllllie24-Nov-08 0:34
ellllllllie24-Nov-08 0:34 
QuestionA blocking operation was interrupted by a call to WSACancelBlockingCall Pin
Gareth H24-Nov-08 0:27
Gareth H24-Nov-08 0:27 
AnswerRe: A blocking operation was interrupted by a call to WSACancelBlockingCall Pin
led mike24-Nov-08 5:02
led mike24-Nov-08 5:02 
Gareth H wrote:
and then call tcpClient.Close();

No way to say this doesn't get people upset but, developing quality software can ONLY be accomplished by reading the documentation, period.

link[^]

When you are finished sending and receiving data, use the Shutdown method to disable the Socket. After calling Shutdown, call the Close method to release all resources associated with the Socket.

Gareth H wrote:
I am a bit confused as to why this error is being thrown, since when I close the form, the "Reading..." trace is never printed out.


I can't explain how your code works. A wild guess is that it did print out long before you closed anything and you just are not seeing it because you are mistakenly expecting to see it print out when you close the form. That said, an exception will be thrown from a blocking read when the read is canceled. That behavior is by design.


led mike

GeneralRe: A blocking operation was interrupted by a call to WSACancelBlockingCall Pin
Gareth H24-Nov-08 5:37
Gareth H24-Nov-08 5:37 
GeneralRe: A blocking operation was interrupted by a call to WSACancelBlockingCall Pin
led mike24-Nov-08 5:56
led mike24-Nov-08 5:56 
GeneralRe: A blocking operation was interrupted by a call to WSACancelBlockingCall Pin
Gareth H24-Nov-08 7:24
Gareth H24-Nov-08 7:24 
QuestionCapturing SessionEnding without Main form Pin
__DanC__23-Nov-08 23:21
__DanC__23-Nov-08 23:21 
QuestionThis is about material. I am Mongolia. I don't speak english Pin
Tsodgorhuu23-Nov-08 22:27
Tsodgorhuu23-Nov-08 22:27 
AnswerRe: This is about material. I am Mongolia. I don't speak english Pin
Simon P Stevens23-Nov-08 22:36
Simon P Stevens23-Nov-08 22:36 
GeneralRe: This is about material. I am Mongolia. I don't speak english Pin
Thomas Weller23-Nov-08 22:41
Thomas Weller23-Nov-08 22:41 
GeneralHelp me Pin
Tsodgorhuu23-Nov-08 22:42
Tsodgorhuu23-Nov-08 22:42 
AnswerCross post, please ignore Pin
Giorgi Dalakishvili23-Nov-08 22:40
mentorGiorgi Dalakishvili23-Nov-08 22:40 
AnswerRe: This is about material. I am Mongolia. I don't speak english Pin
Vimalsoft(Pty) Ltd23-Nov-08 22:40
professionalVimalsoft(Pty) Ltd23-Nov-08 22:40 
RantRe: This is about material. I am Mongolia. I don't speak english - no, but you cross post your homework everywhere Pin
Ashfield23-Nov-08 23:01
Ashfield23-Nov-08 23:01 
AnswerRe: This is about material. I am Mongolia. I don't speak english Pin
zenstain10-Nov-11 8:39
professionalzenstain10-Nov-11 8:39 
Question[Message Deleted] Pin
Tsodgorhuu23-Nov-08 22:17
Tsodgorhuu23-Nov-08 22:17 
AnswerRe: Help me Pin
J4amieC23-Nov-08 22:18
J4amieC23-Nov-08 22:18 
Question[I wrote]: hi.. Pin
vinay_K23-Nov-08 22:16
vinay_K23-Nov-08 22:16 
AnswerRe: [I wrote]: hi.. Pin
Simon P Stevens23-Nov-08 22:20
Simon P Stevens23-Nov-08 22:20 
GeneralRe: [I wrote]: hi.. Pin
vinay_K23-Nov-08 22:22
vinay_K23-Nov-08 22:22 

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.