Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: Theading with TCPListner Optimization Pin
harold aptroot7-Nov-16 4:53
harold aptroot7-Nov-16 4:53 
GeneralRe: Theading with TCPListner Optimization Pin
maher khalil7-Nov-16 4:58
maher khalil7-Nov-16 4:58 
AnswerRe: Theading with TCPListner Optimization Pin
Paulo Zemek7-Nov-16 4:58
mvaPaulo Zemek7-Nov-16 4:58 
GeneralRe: Theading with TCPListner Optimization Pin
maher khalil7-Nov-16 5:04
maher khalil7-Nov-16 5:04 
GeneralRe: Theading with TCPListner Optimization Pin
maher khalil7-Nov-16 5:06
maher khalil7-Nov-16 5:06 
GeneralRe: Theading with TCPListner Optimization Pin
Paulo Zemek7-Nov-16 5:15
mvaPaulo Zemek7-Nov-16 5:15 
GeneralRe: Theading with TCPListner Optimization Pin
maher khalil8-Nov-16 2:38
maher khalil8-Nov-16 2:38 
GeneralRe: Theading with TCPListner Optimization Pin
Paulo Zemek8-Nov-16 6:01
mvaPaulo Zemek8-Nov-16 6:01 
Yeah... I didn't notice the GetStream was inside a while(true)... so you shouldn't dispose the stream at that moment.
Yet, I think I found your issue. You put the try / catch inside the while (true). That means that as soon as there is the first exception, your code will be actively rerunning and rethrowing exceptions forever.

So, the right thing would be to put the while(true) inside the try... actually, inside the using clause for the network stream. But if you want to test it without too many changes, simply put returns in your catch clauses and it should solve the eternal loop issue.

GeneralRe: Theading with TCPListner Optimization Pin
maher khalil13-Nov-16 22:28
maher khalil13-Nov-16 22:28 
GeneralRe: Theading with TCPListner Optimization Pin
Paulo Zemek17-Nov-16 7:05
mvaPaulo Zemek17-Nov-16 7:05 
AnswerRe: Theading with TCPListner Optimization Pin
Ravindra.P.C10-Nov-16 0:32
professionalRavindra.P.C10-Nov-16 0:32 
Questionclean form1 with button the other form2 calling a class Pin
antonio_dsanchez7-Nov-16 3:56
antonio_dsanchez7-Nov-16 3:56 
AnswerRe: clean form1 with button the other form2 calling a class Pin
OriginalGriff7-Nov-16 4:15
mveOriginalGriff7-Nov-16 4:15 
GeneralRe: clean form1 with button the other form2 calling a class Pin
antonio_dsanchez7-Nov-16 4:57
antonio_dsanchez7-Nov-16 4:57 
QuestionClass Library instance management ? Pin
BillWoodruff7-Nov-16 0:59
professionalBillWoodruff7-Nov-16 0:59 
AnswerRe: Class Library instance management ? Pin
Midi_Mick7-Nov-16 1:57
professionalMidi_Mick7-Nov-16 1:57 
AnswerRe: Class Library instance management ? Pin
Jochen Arndt7-Nov-16 2:06
professionalJochen Arndt7-Nov-16 2:06 
AnswerRe: Class Library instance management ? Pin
Member 37973038-Nov-16 7:46
Member 37973038-Nov-16 7:46 
QuestionOracleDataAdapter.Fill "System.InvalidOperation.Exception" Error Pin
Choi KyuJung6-Nov-16 20:25
Choi KyuJung6-Nov-16 20:25 
AnswerRe: OracleDataAdapter.Fill "System.InvalidOperation.Exception" Error Pin
Michael_Davies6-Nov-16 20:34
Michael_Davies6-Nov-16 20:34 
AnswerRe: OracleDataAdapter.Fill "System.InvalidOperation.Exception" Error Pin
OriginalGriff6-Nov-16 23:27
mveOriginalGriff6-Nov-16 23:27 
AnswerRe: OracleDataAdapter.Fill "System.InvalidOperation.Exception" Error Pin
Richard Deeming7-Nov-16 2:22
mveRichard Deeming7-Nov-16 2:22 
QuestionParallel Array Assignment Pin
Member 128361456-Nov-16 19:37
Member 128361456-Nov-16 19:37 
AnswerRe: Parallel Array Assignment Pin
Richard MacCutchan6-Nov-16 21:42
mveRichard MacCutchan6-Nov-16 21:42 
AnswerRe: Parallel Array Assignment Pin
OriginalGriff6-Nov-16 23:26
mveOriginalGriff6-Nov-16 23:26 

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.