Click here to Skip to main content
15,915,702 members
Home / Discussions / C#
   

C#

 
GeneralRe: Floating child form linked to Treemap nodes Pin
Dave Kreskowiak12-Mar-10 11:13
mveDave Kreskowiak12-Mar-10 11:13 
AnswerRe: Floating child form linked to Treemap nodes Pin
Luc Pattyn12-Mar-10 11:04
sitebuilderLuc Pattyn12-Mar-10 11:04 
GeneralRe: Floating child form linked to Treemap nodes Pin
boreland12-Mar-10 11:09
boreland12-Mar-10 11:09 
Questionabout remote desktop(noel) Pin
v_neil8712-Mar-10 8:54
v_neil8712-Mar-10 8:54 
QuestionHelp with C# Pin
Janded12-Mar-10 0:15
Janded12-Mar-10 0:15 
AnswerRe: Help with C# Pin
OriginalGriff12-Mar-10 0:59
mveOriginalGriff12-Mar-10 0:59 
GeneralRe: Help with C# Pin
riced12-Mar-10 4:42
riced12-Mar-10 4:42 
GeneralRe: Help with C# Pin
OriginalGriff12-Mar-10 4:53
mveOriginalGriff12-Mar-10 4:53 
GeneralUnivoter strikes! Pin
OriginalGriff12-Mar-10 5:35
mveOriginalGriff12-Mar-10 5:35 
GeneralRe: Univoter strikes! Pin
harold aptroot12-Mar-10 8:11
harold aptroot12-Mar-10 8:11 
GeneralRe: Univoter strikes! Pin
riced12-Mar-10 13:31
riced12-Mar-10 13:31 
GeneralRe: Univoter strikes! Pin
OriginalGriff12-Mar-10 21:59
mveOriginalGriff12-Mar-10 21:59 
AnswerRe: Help with C# Pin
The Man from U.N.C.L.E.12-Mar-10 8:21
The Man from U.N.C.L.E.12-Mar-10 8:21 
GeneralMessage Removed Pin
13-Mar-10 4:03
Janded13-Mar-10 4:03 
GeneralRe: Help with C# Pin
The Man from U.N.C.L.E.14-Mar-10 23:40
The Man from U.N.C.L.E.14-Mar-10 23:40 
GeneralRe: Help with C# Pin
Janded19-Mar-10 1:42
Janded19-Mar-10 1:42 
GeneralRe: Help with C# Pin
Janded19-Mar-10 2:04
Janded19-Mar-10 2:04 
GeneralRe: Help with C# Pin
The Man from U.N.C.L.E.19-Mar-10 2:20
The Man from U.N.C.L.E.19-Mar-10 2:20 
GeneralRe: Help with C# Pin
Janded20-Mar-10 2:42
Janded20-Mar-10 2:42 
GeneralRe: Help with C# Pin
Janded20-Mar-10 2:57
Janded20-Mar-10 2:57 
Questionwrite to app.config through c# Pin
prasadbuddhika11-Mar-10 22:47
prasadbuddhika11-Mar-10 22:47 
AnswerRe: write to app.config through c# Pin
Estys11-Mar-10 23:36
Estys11-Mar-10 23:36 
QuestionSerial Port Pin
Deepak.Prahlad11-Mar-10 22:14
Deepak.Prahlad11-Mar-10 22:14 
Hi
What are the things i need to look into when i use serial port class?

My issue is I am getting a Timeout Exception every now and then in Reading the port.
My understanding about the serial port class is as below

1. We need to set the baud rate, parity etc once
2. Timeout value (read timeout and write timeout) every time you read or write.

a. Read timeout timer starts when the first characeter arrives at the hardware buffer and code will wait till all the characters arrived as per the code
comPort.Read(buffer, 0, 100);
here it will wait for 100 bytes or timeout value whichever is earlier. ie. if it read 100 bytes it will return even if timeout (say 100mS) not reached. but what happens if there is lesser bytes? is there a interbyte timeout as in CPP here in C#? how to set it?

b. Write timeout functions in same fashion with writing to port. it will return after specified bytes have written unless timeout is not reached.

Am i correct in these assumptions?

Do I have to use some sort of thread locking in DataReceived event thread for proper displaying of the data? (I assume that the DataReceived event thread is system handled thread and does not have control over it. Am i correct?)
AnswerMessage Closed Pin
11-Mar-10 22:37
stancrm11-Mar-10 22:37 
GeneralRe: Serial Port Pin
Deepak.Prahlad11-Mar-10 22:50
Deepak.Prahlad11-Mar-10 22:50 

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.