Click here to Skip to main content
15,916,042 members
Home / Discussions / C#
   

C#

 
GeneralRe: A blocking operation was interrupted by a call to WSACancelBlockingCall Pin
led mike24-Nov-08 5:56
led mike24-Nov-08 5:56 
Gareth H wrote:
I added the Shutdown call, but that didn't solve the problem.

Did you read my post? Roll eyes | :rolleyes:
led mike wrote:
That said, an exception will be thrown from a blocking read when the read is canceled. That behavior is by design.

Gareth H wrote:
It seems that the exception is thrown the same number of times a message is sent to the java process.


Without being able to reproduce the behavior themselves it is unlikely anyone will be able to help you. I have done socket development since 1994 and I have never seen anything such as you describe. My first guess is that the behavior is introduced by your code, not by the TCP stack or the any of the other libraries you are using.

Some of what you previously said indicates you are using threads. It is very likely you are creating a new reading thread for each message sent to the Java process since that would explain the behavior.


led mike

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 
QuestionInsert data into a table Pin
sram1523-Nov-08 22:06
sram1523-Nov-08 22:06 
AnswerRe: Insert data into a table Pin
Giorgi Dalakishvili23-Nov-08 22:09
mentorGiorgi Dalakishvili23-Nov-08 22:09 
GeneralRe: Insert data into a table Pin
sram1523-Nov-08 22:12
sram1523-Nov-08 22:12 
GeneralRe: Insert data into a table Pin
Giorgi Dalakishvili23-Nov-08 22:16
mentorGiorgi Dalakishvili23-Nov-08 22:16 
QuestionI want to run program on background . pref C# Pin
developer9004623-Nov-08 22:04
developer9004623-Nov-08 22:04 
AnswerRe: I want to run program on background . pref C# Pin
Giorgi Dalakishvili23-Nov-08 22:14
mentorGiorgi Dalakishvili23-Nov-08 22:14 
QuestionRemoving components Pin
B8723-Nov-08 21:29
B8723-Nov-08 21:29 
QuestionForeach Item in... Pin
jas0n2323-Nov-08 21:19
jas0n2323-Nov-08 21:19 
AnswerRe: Foreach Item in... Pin
Guffa23-Nov-08 21:31
Guffa23-Nov-08 21:31 

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.