Click here to Skip to main content
15,905,607 members
Home / Discussions / C#
   

C#

 
Questionhow to add the values from controls to class to read it in xml Pin
Rocky234-May-11 7:42
Rocky234-May-11 7:42 
QuestionConversion of List to DataTable Pin
Ankit Rajput4-May-11 0:45
Ankit Rajput4-May-11 0:45 
AnswerRe: Conversion of List to DataTable Pin
Peter_in_27804-May-11 0:59
professionalPeter_in_27804-May-11 0:59 
GeneralRe: Conversion of List to DataTable Pin
Ankit Rajput4-May-11 1:02
Ankit Rajput4-May-11 1:02 
GeneralRe: Conversion of List to DataTable Pin
Dave Kreskowiak4-May-11 1:14
mveDave Kreskowiak4-May-11 1:14 
GeneralRe: Conversion of List to DataTable Pin
Ankit Rajput4-May-11 1:22
Ankit Rajput4-May-11 1:22 
AnswerRe: Conversion of List to DataTable Pin
Blue_Boy4-May-11 1:13
Blue_Boy4-May-11 1:13 
JokeRe: Conversion of List to DataTable Pin
wizardzz4-May-11 7:39
wizardzz4-May-11 7:39 
AnswerRe: Conversion of List to DataTable Pin
wizardzz4-May-11 7:39
wizardzz4-May-11 7:39 
QuestionHow to axAcroPdf automatically perform click on save button Pin
cigara93933-May-11 22:05
cigara93933-May-11 22:05 
Question64 bit Console linked to 32 bit dll? Pin
devvvy3-May-11 16:59
devvvy3-May-11 16:59 
AnswerRe: 64 bit Console linked to 32 bit dll? Pin
Luc Pattyn3-May-11 17:30
sitebuilderLuc Pattyn3-May-11 17:30 
QuestionAsynchronous Response to a Synchronous TCPClient Pin
Octantis3-May-11 13:09
Octantis3-May-11 13:09 
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
Luc Pattyn3-May-11 13:25
sitebuilderLuc Pattyn3-May-11 13:25 
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
BobJanova4-May-11 1:53
BobJanova4-May-11 1:53 
TCP does preserve order, so if you are seeing this, then either you are sending the data out of order, or your receiving code is messing with the order. If you are sending or receiving in multiple threads for the same socket then that could happen, for example if to create the 'numbers' you are spinning off execution of each one to a thread pool or something.

You haven't posted any sending code which I suspect is where the problem lies, as it is unusual to have more than one thread reading the same socket, though if you were doing that it could also mess things up.

By the way your receive code is quite unsafe. Think about what happens if you receive 3 bytes, or 11. Check ClientInfo.ReadInternal from my sockets library to see how to cope with this.
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
jschell4-May-11 8:37
jschell4-May-11 8:37 
GeneralRe: Asynchronous Response to a Synchronous TCPClient Pin
Octantis4-May-11 9:22
Octantis4-May-11 9:22 
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
Luc Pattyn4-May-11 15:08
sitebuilderLuc Pattyn4-May-11 15:08 
GeneralRe: Asynchronous Response to a Synchronous TCPClient Pin
jschell5-May-11 8:02
jschell5-May-11 8:02 
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
Octantis5-May-11 10:11
Octantis5-May-11 10:11 
GeneralRe: Asynchronous Response to a Synchronous TCPClient Pin
jschell6-May-11 10:48
jschell6-May-11 10:48 
QuestionHow to load Arabic File name Pin
raushan_93-May-11 8:41
raushan_93-May-11 8:41 
AnswerRe: How to load Arabic File name Pin
Pete O'Hanlon3-May-11 9:02
mvePete O'Hanlon3-May-11 9:02 
QuestionC# and Power Point Pin
PDTUM3-May-11 7:55
PDTUM3-May-11 7:55 
AnswerRe: C# and Power Point Pin
Pete O'Hanlon3-May-11 9:36
mvePete O'Hanlon3-May-11 9:36 

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.