Click here to Skip to main content
15,904,416 members
Home / Discussions / C#
   

C#

 
GeneralMad with GroupBox!!!!! Help!!!! Pin
sparks_lu2-Jun-05 14:58
sparks_lu2-Jun-05 14:58 
GeneralRe: Mad with GroupBox!!!!! Help!!!! Pin
MoustafaS2-Jun-05 15:03
MoustafaS2-Jun-05 15:03 
GeneralRe: Mad with GroupBox!!!!! Help!!!! Pin
sparks_lu2-Jun-05 15:38
sparks_lu2-Jun-05 15:38 
GeneralRe: Mad with GroupBox!!!!! Help!!!! Pin
Marc Clifton2-Jun-05 15:15
mvaMarc Clifton2-Jun-05 15:15 
GeneralRe: Mad with GroupBox!!!!! Help!!!! Pin
Christian Graus2-Jun-05 15:51
protectorChristian Graus2-Jun-05 15:51 
GeneralRe: Mad with GroupBox!!!!! Help!!!! Pin
Marc Clifton2-Jun-05 16:15
mvaMarc Clifton2-Jun-05 16:15 
GeneralRe: Mad with GroupBox!!!!! Help!!!! Pin
Christian Graus2-Jun-05 16:18
protectorChristian Graus2-Jun-05 16:18 
GeneralA tricky priority problem Pin
Snowjim2-Jun-05 14:12
Snowjim2-Jun-05 14:12 
Hey!

I am using System.IO.SerialPort in framework 2.0(Beta2) to listening on the port. I am also using DataReceived event on the serialPort object.

I have set the threshold to 1, this means that the event(DataReceived) will fired as soon as 1 byte is written to the serialport.

When this event is triggerd, I am using a ThreadPool to queue work to my OnRecivedData() method.

In OnRecivedData() I first reads existing on the serialport, but I also writes this icoming data to file.

To see if this realy got what it takes I have made som test. I am sending data as fast as posible over the nullmodem cable with the follwing port settings:

Baud: 11 5200
Data: 8
Parity: None
Stop; 1

Problem:
I have compared the file that I send, and the file I recived(creates) and this works fine in low speeds, but whenI am pushing the system to 100% load my program by moving around a window or something, It loses data?

I realy have to get a stable connection even during stress.

I first thought that I could set the ThreadPool to a higher priority, but I havent found any way to do this? It could also be the evnet(DataReceived) that is never fired, can I set higher priority on this event?

Best Regards
SnowJim

GeneralRe: A tricky priority problem Pin
Christian Graus2-Jun-05 14:27
protectorChristian Graus2-Jun-05 14:27 
GeneralRe: A tricky priority problem Pin
Snowjim2-Jun-05 22:50
Snowjim2-Jun-05 22:50 
GeneralRe: A tricky priority problem Pin
S. Senthil Kumar3-Jun-05 2:29
S. Senthil Kumar3-Jun-05 2:29 
GeneralRe: A tricky priority problem Pin
Snowjim3-Jun-05 7:58
Snowjim3-Jun-05 7:58 
GeneralRe: A tricky priority problem Pin
S. Senthil Kumar3-Jun-05 8:13
S. Senthil Kumar3-Jun-05 8:13 
GeneralRe: A tricky priority problem Pin
Snowjim3-Jun-05 8:44
Snowjim3-Jun-05 8:44 
GeneralRe: A tricky priority problem Pin
Snowjim3-Jun-05 13:23
Snowjim3-Jun-05 13:23 
GeneralRe: A tricky priority problem Pin
Carsten Zeumer4-Jun-05 0:46
Carsten Zeumer4-Jun-05 0:46 
GeneralRe: A tricky priority problem Pin
Snowjim4-Jun-05 1:34
Snowjim4-Jun-05 1:34 
GeneralRe: A tricky priority problem Pin
Snowjim4-Jun-05 14:31
Snowjim4-Jun-05 14:31 
GeneralCatching the press of the Power Button Pin
Dmitriy Sinyagin2-Jun-05 13:07
Dmitriy Sinyagin2-Jun-05 13:07 
GeneralRe: Catching the press of the Power Button Pin
Christian Graus2-Jun-05 13:29
protectorChristian Graus2-Jun-05 13:29 
GeneralRe: Catching the press of the Power Button Pin
Dmitriy Sinyagin2-Jun-05 13:59
Dmitriy Sinyagin2-Jun-05 13:59 
GeneralRe: Catching the press of the Power Button Pin
Christian Graus2-Jun-05 14:10
protectorChristian Graus2-Jun-05 14:10 
GeneralRe: Catching the press of the Power Button Pin
Dmitriy Sinyagin2-Jun-05 14:24
Dmitriy Sinyagin2-Jun-05 14:24 
GeneralRe: Catching the press of the Power Button Pin
Christian Graus2-Jun-05 14:28
protectorChristian Graus2-Jun-05 14:28 
GeneralRe: Catching the press of the Power Button Pin
Dmitriy Sinyagin2-Jun-05 14:33
Dmitriy Sinyagin2-Jun-05 14: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.