ColdPhreze
Programmer
- Apr 15, 2002
- 93
Ok, here it goes
I am writing an application that needs to use minimal system resources AND needs to be able to catch and record a fast-changing variable. It's fast enough that a timer interval of 1 is too slow.
FYI: the variable is one in a serial port class - not one I created, and is changing based on conditions external to the PC.
In a console app, I know I could poll in a loop, but that is cpu intensive, and I need forms in this app.
Is there any way I could set an event to occur when a variable changes value? Or can I somehow poll at 0.1 millisecond intervals?
Thank you very much,
KyferEz
Check out my DeVry Senior Project: and my CarPC Hardware:
I am writing an application that needs to use minimal system resources AND needs to be able to catch and record a fast-changing variable. It's fast enough that a timer interval of 1 is too slow.
FYI: the variable is one in a serial port class - not one I created, and is changing based on conditions external to the PC.
In a console app, I know I could poll in a loop, but that is cpu intensive, and I need forms in this app.
Is there any way I could set an event to occur when a variable changes value? Or can I somehow poll at 0.1 millisecond intervals?
Thank you very much,
KyferEz
Check out my DeVry Senior Project: and my CarPC Hardware: