Click here to Skip to main content
15,887,175 members
Home / Discussions / C#
   

C#

 
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 
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 
I think you and the others might be right with them being sent in the wrong order.

I believe this is what is happening. I spawn a fire and forget thread to send out the data. I think the system is servicing the threads in a different order than what they were created. I use a semaphore on the socket to ensure the writing is done without interruption from other threads ensuring the whole message is sent out. I'm thinking I just need to use a single sending thread and build a queue for outgoing data.

I'm working on tracking the threads to verify my claim. I'll post more when it shows up.

BTW thanks for the help. You guys simply saying check your sending code was enough to make me take a second look. I appreciate you taking the time to read this.

Tim
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 
AnswerRe: C# and Power Point Pin
PDTUM3-May-11 13:01
PDTUM3-May-11 13:01 
GeneralRe: C# and Power Point Pin
wizardzz4-May-11 10:01
wizardzz4-May-11 10:01 
QuestionConnection String problem Pin
si_693-May-11 6:01
si_693-May-11 6:01 
AnswerRe: Connection String problem Pin
Ian Shlasko3-May-11 6:17
Ian Shlasko3-May-11 6:17 
AnswerRe: Connection String problem Pin
Pete O'Hanlon3-May-11 6:18
mvePete O'Hanlon3-May-11 6:18 
AnswerRe: Connection String problem Pin
DaveAuld3-May-11 6:20
professionalDaveAuld3-May-11 6:20 
AnswerRe: Connection String problem Pin
Luc Pattyn3-May-11 6:28
sitebuilderLuc Pattyn3-May-11 6:28 
GeneralRe: Connection String problem Pin
Pete O'Hanlon3-May-11 6:44
mvePete O'Hanlon3-May-11 6:44 
GeneralRe: Connection String problem Pin
Luc Pattyn3-May-11 6:51
sitebuilderLuc Pattyn3-May-11 6:51 

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.