Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
Questionfile name from network port??? Pin
lanep30-Nov-12 11:13
lanep30-Nov-12 11:13 
AnswerRe: file name from network port??? Pin
Dave Kreskowiak30-Nov-12 12:36
mveDave Kreskowiak30-Nov-12 12:36 
GeneralRe: file name from network port??? Pin
lanep30-Nov-12 19:28
lanep30-Nov-12 19:28 
GeneralRe: file name from network port??? Pin
Eddy Vluggen30-Nov-12 23:29
professionalEddy Vluggen30-Nov-12 23:29 
GeneralRe: file name from network port??? Pin
Dave Kreskowiak1-Dec-12 3:13
mveDave Kreskowiak1-Dec-12 3:13 
GeneralRe: file name from network port??? Pin
lanep5-Dec-12 11:19
lanep5-Dec-12 11:19 
QuestionSerialPort DataReceived event Pin
Blubbo30-Nov-12 11:04
Blubbo30-Nov-12 11:04 
AnswerRe: SerialPort DataReceived event Pin
OriginalGriff30-Nov-12 22:28
mveOriginalGriff30-Nov-12 22:28 
There are a couple of ways to handle this, but it depends on how you want to work it.
The simplest solution is to set up a thread to handle each com port - that way they can use ReadLine all they want, and you don't have to worry about them hanging the UI thread or about data synchronisation. You then have to communicate between the UI and the threads - and I have no idea how complex that is for you because I don't know what you app is actually doing.

The other is to use the DataRecieved Event in the UI thread as you seem to be doing - but that has to be handled differently, because the data is not received in the form of lines - it arrives character by character (or a couple of characters at a time if the processor is busy) so you have to buffer and examine the data a bit more carefully.

Exactly which way you should go, I don't know - but without seeing any relevant code fragments, I can't tell what your code is doing at the moment, so I can't make any concrete suggestions.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.

Questionvideo conferencing Pin
Oyebisi Jemil30-Nov-12 8:44
Oyebisi Jemil30-Nov-12 8:44 
AnswerRe: video conferencing Pin
Pete O'Hanlon30-Nov-12 9:03
mvePete O'Hanlon30-Nov-12 9:03 
AnswerRe: video conferencing Pin
OriginalGriff30-Nov-12 22:30
mveOriginalGriff30-Nov-12 22:30 
QuestionMaster-details Issue: Works with EW3 But Not with EW4 Pin
SaintNek30-Nov-12 5:08
SaintNek30-Nov-12 5:08 
AnswerRe: Master-details Issue: Works with EW3 But Not with EW4 Pin
Eddy Vluggen1-Dec-12 5:52
professionalEddy Vluggen1-Dec-12 5:52 
AnswerRe: Master-details Issue: Works with EW3 But Not with EW4 Pin
SaintNek4-Dec-12 8:35
SaintNek4-Dec-12 8:35 
QuestionA MEF question Pin
John T.Emmatty30-Nov-12 4:50
John T.Emmatty30-Nov-12 4:50 
AnswerRe: A MEF question Pin
Simon_Whale30-Nov-12 4:59
Simon_Whale30-Nov-12 4:59 
QuestionRe: A MEF question Pin
Richard Deeming30-Nov-12 5:35
mveRichard Deeming30-Nov-12 5:35 
AnswerRe: A MEF question Pin
John T.Emmatty30-Nov-12 20:00
John T.Emmatty30-Nov-12 20:00 
QuestionC# WinForms - Printing Multiple Pages Pin
Matt U.30-Nov-12 4:29
Matt U.30-Nov-12 4:29 
AnswerRe: C# WinForms - Printing Multiple Pages Pin
BobJanova30-Nov-12 4:34
BobJanova30-Nov-12 4:34 
GeneralRe: C# WinForms - Printing Multiple Pages Pin
Matt U.30-Nov-12 4:48
Matt U.30-Nov-12 4:48 
QuestionFind the differences between two images for screen sharing apps Pin
Tridip Bhattacharjee30-Nov-12 3:13
professionalTridip Bhattacharjee30-Nov-12 3:13 
AnswerRe: Find the differences between two images for screen sharing apps Pin
Dave Kreskowiak30-Nov-12 4:07
mveDave Kreskowiak30-Nov-12 4:07 
AnswerRe: Find the differences between two images for screen sharing apps Pin
BobJanova30-Nov-12 4:32
BobJanova30-Nov-12 4:32 
GeneralRe: Find the differences between two images for screen sharing apps Pin
Richard Deeming30-Nov-12 4:42
mveRichard Deeming30-Nov-12 4:42 

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.