Click here to Skip to main content
15,909,242 members
Home / Discussions / C#
   

C#

 
AnswerRe: convert unicode to iransystem Pin
Keith Barrow24-Oct-11 1:53
professionalKeith Barrow24-Oct-11 1:53 
QuestionAnimation format Pin
Aleonis22-Oct-11 5:59
Aleonis22-Oct-11 5:59 
QuestionDoes anyone know how to unbox or convert a "1" as a nullable long? Pin
Alaric_22-Oct-11 5:37
professionalAlaric_22-Oct-11 5:37 
AnswerRe: Does anyone know how to unbox or convert a "1" as a nullable long? Pin
Alaric_22-Oct-11 6:03
professionalAlaric_22-Oct-11 6:03 
GeneralRe: Does anyone know how to unbox or convert a "1" as a nullable long? Pin
Alaric_22-Oct-11 6:04
professionalAlaric_22-Oct-11 6:04 
QuestionScope issue declaring a delegate within a static class Pin
dotman121-Oct-11 23:15
dotman121-Oct-11 23:15 
AnswerRe: Scope issue declaring a delegate within a static class Pin
dotman121-Oct-11 23:33
dotman121-Oct-11 23:33 
QuestionAsync Socket Receive Pin
Richard Andrew x6421-Oct-11 6:48
professionalRichard Andrew x6421-Oct-11 6:48 
My application experiences the problem where occasionally, two packets appear to arrive out of order. Since I'm using TCP, this must be impossible at the protocol level, so I think the problem must lie with my implementation of the async model.

The pseudo code of my implementation is below. Are there any general pointers someone can mention that might be wrong with my model?

Is there anything wrong with issuing subsequent reads directly from the read-completion handler?

C#
Begin Read
    Issue asynchronous read
    if Read completes synchronously, directly call Read Completion function

Read Complete Function
    call EndRead to determine number of bytes read
    write receive buffer to my stream
    process stream
    call Begin Read to issue another read




The difficult we do right away...
...the impossible takes slightly longer.

AnswerRe: Async Socket Receive Pin
Eddy Vluggen21-Oct-11 9:04
professionalEddy Vluggen21-Oct-11 9:04 
AnswerRe: Async Socket Receive Pin
TheGreatAndPowerfulOz21-Oct-11 9:20
TheGreatAndPowerfulOz21-Oct-11 9:20 
AnswerRe: Async Socket Receive Pin
jschell21-Oct-11 10:59
jschell21-Oct-11 10:59 
GeneralRe: Async Socket Receive Pin
Richard Andrew x6421-Oct-11 11:14
professionalRichard Andrew x6421-Oct-11 11:14 
GeneralRe: Async Socket Receive Pin
jschell21-Oct-11 12:15
jschell21-Oct-11 12:15 
GeneralRe: Async Socket Receive Pin
Richard Andrew x6421-Oct-11 17:55
professionalRichard Andrew x6421-Oct-11 17:55 
QuestionMIME Attachment Names containing Extended Characters Fails Pin
Chadwick Posey21-Oct-11 4:39
Chadwick Posey21-Oct-11 4:39 
AnswerRe: MIME Attachment Names containing Extended Characters Fails Pin
Eddy Vluggen21-Oct-11 9:13
professionalEddy Vluggen21-Oct-11 9:13 
GeneralRe: MIME Attachment Names containing Extended Characters Fails Pin
Chadwick Posey21-Oct-11 10:17
Chadwick Posey21-Oct-11 10:17 
GeneralRe: MIME Attachment Names containing Extended Characters Fails Pin
Chadwick Posey24-Oct-11 6:28
Chadwick Posey24-Oct-11 6:28 
QuestionSome data gets lost between WCF server and client Pin
teknolog12321-Oct-11 2:06
teknolog12321-Oct-11 2:06 
AnswerRe: Some data gets lost between WCF server and client Pin
OriginalGriff21-Oct-11 2:31
mveOriginalGriff21-Oct-11 2:31 
QuestionRe: Some data gets lost between WCF server and client Pin
Luc Pattyn21-Oct-11 3:14
sitebuilderLuc Pattyn21-Oct-11 3:14 
AnswerRe: Some data gets lost between WCF server and client Pin
OriginalGriff21-Oct-11 3:18
mveOriginalGriff21-Oct-11 3:18 
GeneralRe: Some data gets lost between WCF server and client Pin
Dennis E White21-Oct-11 3:28
professionalDennis E White21-Oct-11 3:28 
GeneralRe: Some data gets lost between WCF server and client Pin
teknolog12321-Oct-11 4:23
teknolog12321-Oct-11 4:23 
AnswerRe: Some data gets lost between WCF server and client Pin
Abhinav S21-Oct-11 2:39
Abhinav S21-Oct-11 2:39 

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.