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

C#

 
GeneralRe: use DefWindowProc in c# Pin
Sasuko5-Jun-05 12:53
Sasuko5-Jun-05 12:53 
GeneralAccomplishing Listview Column Reorder Programmatically Pin
Hashir Zuberi5-Jun-05 0:24
Hashir Zuberi5-Jun-05 0:24 
GeneralSerialPort/Stress problem Pin
Snowjim5-Jun-05 0:23
Snowjim5-Jun-05 0:23 
GeneralRe: SerialPort/Stress problem Pin
S. Senthil Kumar5-Jun-05 4:01
S. Senthil Kumar5-Jun-05 4:01 
GeneralRe: SerialPort/Stress problem Pin
Snowjim5-Jun-05 4:14
Snowjim5-Jun-05 4:14 
GeneralRe: SerialPort/Stress problem Pin
S. Senthil Kumar5-Jun-05 7:01
S. Senthil Kumar5-Jun-05 7:01 
GeneralRe: SerialPort/Stress problem Pin
Snowjim5-Jun-05 7:49
Snowjim5-Jun-05 7:49 
GeneralRe: SerialPort/Stress problem Pin
Sebastian Schneider5-Jun-05 20:07
Sebastian Schneider5-Jun-05 20:07 
If you depend on the data arriving in the exact same order it was sent, there is no easy way other than using one (1) hand-crafted thread to "listen" on the serial port.

Locking simply means that threads will not interfere with each other, it does not assure the order in which the threads will gain access.

You COULD try and use a ResetEvent in the main "queue", which is then reset in the worker-thread.

I still suggest that you try and design a single "listening worker" which should be written in a way that has it handle the events "one by one". That will cost you some speed, but is easy to understand and maintain.





Cheers,
Sebastian

--
Contra vim mortem non est medicamen in hortem.
GeneralRe: SerialPort/Stress problem Pin
Snowjim6-Jun-05 0:59
Snowjim6-Jun-05 0:59 
GeneralC# directory file-structure reading Pin
Steepy_dipper4-Jun-05 22:51
sussSteepy_dipper4-Jun-05 22:51 
GeneralRe: C# directory file-structure reading Pin
Carsten Zeumer4-Jun-05 23:33
Carsten Zeumer4-Jun-05 23:33 
GeneralRe: C# directory file-structure reading Pin
GaMBiT_KC4-Jun-05 23:34
GaMBiT_KC4-Jun-05 23:34 
GeneralSql Query Builder from an app Pin
Leyu4-Jun-05 20:43
Leyu4-Jun-05 20:43 
GeneralShort cut icons on a windows form Pin
Rinventive4-Jun-05 20:42
Rinventive4-Jun-05 20:42 
GeneralRe: Short cut icons on a windows form Pin
Carsten Zeumer4-Jun-05 23:46
Carsten Zeumer4-Jun-05 23:46 
GeneralRe: Short cut icons on a windows form Pin
Anonymous5-Jun-05 19:29
Anonymous5-Jun-05 19:29 
GeneralExchange the Language on a localized Windows Forms form Pin
Uwe Keim4-Jun-05 20:30
sitebuilderUwe Keim4-Jun-05 20:30 
Generalpls Provide C# code for the Visual Basic code Below Pin
monica2k4-Jun-05 18:00
monica2k4-Jun-05 18:00 
GeneralRe: pls Provide C# code for the Visual Basic code Below Pin
Chris Austin4-Jun-05 19:33
Chris Austin4-Jun-05 19:33 
GeneralRe: pls Provide C# code for the Visual Basic code Below Pin
WillemM5-Jun-05 0:58
WillemM5-Jun-05 0:58 
GeneralRe: pls Provide C# code for the Visual Basic code Below Pin
Robert Rohde5-Jun-05 1:39
Robert Rohde5-Jun-05 1:39 
GeneralRe: pls Provide C# code for the Visual Basic code Below Pin
Michael P Butler5-Jun-05 3:44
Michael P Butler5-Jun-05 3:44 
GeneralC# Active FTP Data Transfer Pin
eddieg764-Jun-05 17:21
eddieg764-Jun-05 17:21 
GeneralRe: C# Active FTP Data Transfer Pin
WillemM5-Jun-05 0:29
WillemM5-Jun-05 0:29 
GeneralRe: C# Active FTP Data Transfer Pin
emgeed6-Jun-05 14:48
emgeed6-Jun-05 14:48 

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.