H
Hollywood
I noticed, even running the simple FormStack project (Chris Tacke's original
C# one), that the UI Framework seems to have a performance issue and causes
high load on the CPU. I surmize that this may be caused by the Run method
that repeatedly loops to call DoEvents, i.e.
do {
System.Windows.Forms.Applications.DoEvents();
} while(List.Count > 0)
where List is a list of System.Windows.Forms.Form objects.
Is there a better way to do this? Or perhaps a way to force it to sleep for
a couple milliseconds before checking for events again?
An easy way to show this is to take the FormStack project, add a MainMenu
with a File->Open menu items to the MovieList. Compile in Release mode,
upload to device [I'm using an Axim X5 with PPC2002, SP1] and run it. Click
on the File->Open and the CPU utilization jumps from around ~5% to about 95%
and just stays there.
Thanks for any thoughts, tips, etc...
C# one), that the UI Framework seems to have a performance issue and causes
high load on the CPU. I surmize that this may be caused by the Run method
that repeatedly loops to call DoEvents, i.e.
do {
System.Windows.Forms.Applications.DoEvents();
} while(List.Count > 0)
where List is a list of System.Windows.Forms.Form objects.
Is there a better way to do this? Or perhaps a way to force it to sleep for
a couple milliseconds before checking for events again?
An easy way to show this is to take the FormStack project, add a MainMenu
with a File->Open menu items to the MovieList. Compile in Release mode,
upload to device [I'm using an Axim X5 with PPC2002, SP1] and run it. Click
on the File->Open and the CPU utilization jumps from around ~5% to about 95%
and just stays there.
Thanks for any thoughts, tips, etc...