Click here to Skip to main content
15,909,518 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: SerialPort/Stress problem Pin
Snowjim6-Jun-05 0:59
Snowjim6-Jun-05 0:59 
Thanks for your advaice!

I have rebuilt it to one Thread like this:


<br />
                RUNNING = true;<br />
                currentRunningThreads = 0;<br />
<br />
                dataCollector = new DataCollector();<br />
<br />
                #region Create Connection<br />
                serialPort = new SerialPort(serialPortSettings.getPort, serialPortSettings.getBoudRate, serialPortSettings.getParity, serialPortSettings.getDataBits, serialPortSettings.getStopBit);<br />
                serialPort.DtrEnable = true;<br />
                serialPort.RtsEnable = true;<br />
                serialPort.WriteBufferSize = 102480;<br />
                serialPort.ReadBufferSize = 102480;<br />
                serialPort.Open();<br />
                #endregion<br />
<br />
                //serialPort.DataReceived += new SerialDataReceivedEventHandler(serialPort_ReceivedEvent);<br />
<br />
                while (RUNNING)<br />
                {<br />
                    if (serialPort.BytesToRead > 0)<br />
                    {<br />
                        onDataReceived();<br />
                    }<br />
                    else<br />
                        Thread.Sleep(1);<br />
                }<br />


But the main part is that i have encreased the writeBuffersize but mainly the ReadBufferSize to 102480.

And with this settings i have now runned 4 stress tests that results in perfect matching files!


Proberly the reading buffert on 4048 was to small to handle the stress. This software may be runned on laptops later on, and there need to be some extra buffert for these. What do you think of the new buffert size? is it maby to big? or can i increase it more to be more safe?

Best Regards
SnowJim
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 
GeneralRe: C# Active FTP Data Transfer Pin
WillemM6-Jun-05 20:38
WillemM6-Jun-05 20:38 

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.