Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: Porting this to event-based? Pin
Lord Kixdemp24-Sep-06 15:13
Lord Kixdemp24-Sep-06 15:13 
GeneralRe: Porting this to event-based? Pin
Nader Elshehabi24-Sep-06 15:30
Nader Elshehabi24-Sep-06 15:30 
GeneralRe: Porting this to event-based? Pin
Lord Kixdemp25-Sep-06 11:25
Lord Kixdemp25-Sep-06 11:25 
GeneralRe: Porting this to event-based? Pin
Nader Elshehabi25-Sep-06 11:44
Nader Elshehabi25-Sep-06 11:44 
GeneralRe: Porting this to event-based? Pin
Lord Kixdemp25-Sep-06 14:27
Lord Kixdemp25-Sep-06 14:27 
GeneralRe: Porting this to event-based? Pin
Nader Elshehabi25-Sep-06 14:36
Nader Elshehabi25-Sep-06 14:36 
GeneralRe: Porting this to event-based? Pin
Lord Kixdemp25-Sep-06 15:02
Lord Kixdemp25-Sep-06 15:02 
GeneralRe: Porting this to event-based? Pin
Nader Elshehabi25-Sep-06 15:31
Nader Elshehabi25-Sep-06 15:31 
Well, I don't understand much of the code as it's a library that I haven't worked with. Yet about the timer issue and about the processing speed you can make something like a speed factor. Make a few statements, say a while loop that makes a small computation. Now make a long variable that will take the DateTime.Ticks before excuting the loops, and another one after excuting that loop. Take the excution speed as the speed factor of your machine and determine the sleep interval of each target machine dynamically at runtime using the speed factor of each machine. I hope I make sense here!!Big Grin | :-D

To sum up.
1- Make the loop to work best on your computer.
2- Take the SpeedFactor of you computer and the sleep interval as default values in the code.
3- Make that dummy speed test loop -with any statments-, to test the speed of excution.
4- Depending on the SpeedFactor at runtime the sleep interval should be changed -along with any other time dependant factor-.

I hope that worked.

RegardsRose | [Rose]

GeneralRe: Porting this to event-based? Pin
Lord Kixdemp26-Sep-06 14:55
Lord Kixdemp26-Sep-06 14:55 
AnswerRe: Porting this to event-based? Pin
Christian Graus24-Sep-06 15:12
protectorChristian Graus24-Sep-06 15:12 
GeneralRe: Porting this to event-based? Pin
Lord Kixdemp24-Sep-06 15:17
Lord Kixdemp24-Sep-06 15:17 
GeneralRe: Porting this to event-based? Pin
Christian Graus24-Sep-06 15:29
protectorChristian Graus24-Sep-06 15:29 
GeneralRe: Porting this to event-based? Pin
Lord Kixdemp25-Sep-06 8:14
Lord Kixdemp25-Sep-06 8:14 
Questionadd column to dataset Pin
Mohammed Elkholy24-Sep-06 10:39
Mohammed Elkholy24-Sep-06 10:39 
AnswerRe: add column to dataset Pin
Nader Elshehabi24-Sep-06 12:08
Nader Elshehabi24-Sep-06 12:08 
Question[Message Deleted] Pin
code_wiz24-Sep-06 8:06
code_wiz24-Sep-06 8:06 
AnswerRe: extracting a message value from LParam in Message in WndProc(...) Pin
Christian Graus24-Sep-06 11:58
protectorChristian Graus24-Sep-06 11:58 
QuestionRe: extracting a message value from LParam in Message in WndProc(...) Pin
Nader Elshehabi24-Sep-06 12:04
Nader Elshehabi24-Sep-06 12:04 
QuestionProblem getting serial port to open Pin
NYTSX24-Sep-06 7:50
NYTSX24-Sep-06 7:50 
AnswerRe: Problem getting serial port to open Pin
Ed.Poore24-Sep-06 8:23
Ed.Poore24-Sep-06 8:23 
GeneralRe: Problem getting serial port to open Pin
NYTSX25-Sep-06 0:59
NYTSX25-Sep-06 0:59 
GeneralRe: Problem getting serial port to open Pin
NYTSX25-Sep-06 1:12
NYTSX25-Sep-06 1:12 
GeneralRe: Problem getting serial port to open Pin
Ed.Poore25-Sep-06 1:19
Ed.Poore25-Sep-06 1:19 
QuestionSaving objects in Files Pin
ezazazel24-Sep-06 6:32
ezazazel24-Sep-06 6:32 
AnswerRe: Saving objects in Files Pin
Ed.Poore24-Sep-06 8:26
Ed.Poore24-Sep-06 8:26 

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.