Click here to Skip to main content
14,742,256 members
Home » Discussions » C#
   

C#

 
QuestionWhy am I not allowed to do this with events Pin
Keith Barrow9-Oct-20 2:20
professionalKeith Barrow9-Oct-20 2:20 
AnswerRe: Why am I not allowed to do this with events Pin
Richard Deeming9-Oct-20 3:12
mveRichard Deeming9-Oct-20 3:12 
GeneralRe: Why am I not allowed to do this with events Pin
Keith Barrow9-Oct-20 4:19
professionalKeith Barrow9-Oct-20 4:19 
QuestionHow to read from serial port until timeout of no more data received? Pin
td17768-Oct-20 14:27
Membertd17768-Oct-20 14:27 
AnswerRe: How to read from serial port until timeout of no more data received? Pin
Luc Pattyn8-Oct-20 15:27
sitebuilderLuc Pattyn8-Oct-20 15:27 
GeneralRe: How to read from serial port until timeout of no more data received? Pin
td17768-Oct-20 16:36
Membertd17768-Oct-20 16:36 
GeneralRe: How to read from serial port until timeout of no more data received? Pin
Luc Pattyn9-Oct-20 2:25
sitebuilderLuc Pattyn9-Oct-20 2:25 
AnswerRe: How to read from serial port until timeout of no more data received? Pin
Gerry Schmitz8-Oct-20 19:27
mveGerry Schmitz8-Oct-20 19:27 
What makes you "read" in the first place? I've never worked on a "port" application where you just read all the time.

You request, then read before the timeout interval.

Then you simply keep reading until BytesToRead == 0 without timing out. That's the end of the "transmission".

Concatenating transmissions is something else again and nothing to do with the reading. (You can append to text files with one statement).
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food

GeneralRe: How to read from serial port until timeout of no more data received? Pin
td17769-Oct-20 12:16
Membertd17769-Oct-20 12:16 
GeneralRe: How to read from serial port until timeout of no more data received? Pin
Gerry Schmitz9-Oct-20 15:10
mveGerry Schmitz9-Oct-20 15:10 
AnswerRe: How to read from serial port until timeout of no more data received? Pin
Richard MacCutchan8-Oct-20 23:55
mveRichard MacCutchan8-Oct-20 23:55 
AnswerMy (temporary?) solution Pin
td17769-Oct-20 12:25
Membertd17769-Oct-20 12:25 
QuestionCOM exception loss Pin
Member 126326017-Oct-20 21:57
MemberMember 126326017-Oct-20 21:57 
AnswerRe: COM exception loss Pin
Richard MacCutchan7-Oct-20 22:35
mveRichard MacCutchan7-Oct-20 22:35 
GeneralRe: COM exception loss Pin
Member 126326017-Oct-20 23:03
MemberMember 126326017-Oct-20 23:03 
GeneralRe: COM exception loss Pin
Richard MacCutchan7-Oct-20 23:25
mveRichard MacCutchan7-Oct-20 23:25 
GeneralRe: COM exception loss Pin
Member 126326017-Oct-20 23:58
MemberMember 126326017-Oct-20 23:58 
GeneralRe: COM exception loss Pin
Richard MacCutchan8-Oct-20 0:24
mveRichard MacCutchan8-Oct-20 0:24 
AnswerRe: COM exception loss Pin
OriginalGriff8-Oct-20 5:10
mveOriginalGriff8-Oct-20 5:10 
QuestionScanning for servers Pin
pkfox4-Oct-20 22:52
professionalpkfox4-Oct-20 22:52 
AnswerRe: Scanning for servers Pin
Richard Deeming5-Oct-20 3:44
mveRichard Deeming5-Oct-20 3:44 
GeneralRe: Scanning for servers Pin
pkfox5-Oct-20 4:44
professionalpkfox5-Oct-20 4:44 
GeneralRe: Scanning for servers Pin
pkfox5-Oct-20 5:17
professionalpkfox5-Oct-20 5:17 
Questionversion mismatch Pin
Member 149246074-Oct-20 10:30
MemberMember 149246074-Oct-20 10:30 
AnswerRe: version mismatch Pin
Richard Deeming5-Oct-20 3:33
mveRichard Deeming5-Oct-20 3:33 

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.