ColorLine and 100% CPU usage
Posted: Mon Apr 10, 2006 9:47 am
Hi
This may be related to the cursor tool problem.
When the ColorLine tool is dragged, CPU usage jumps to 100% and remains there until the mouse button is released, irrespective of whether the mouse is moved.
Interestingly, it happens only when DragRepaint == false. In this case, DoDragLine() is called repeatedly even when the mouse is stationary. If DragRepaint == true, it is only called when the mouse is actually moved.
I'm using the latest build (1.1.2259.29262), and the problem appears in earlier versions as well.
The issue for me is that I would prefer DragRepaint off, because I'm doing some extra stuff in a derived control, and would like to handle triggering repainting only when I need it.
Thanks
`m
This may be related to the cursor tool problem.
When the ColorLine tool is dragged, CPU usage jumps to 100% and remains there until the mouse button is released, irrespective of whether the mouse is moved.
Interestingly, it happens only when DragRepaint == false. In this case, DoDragLine() is called repeatedly even when the mouse is stationary. If DragRepaint == true, it is only called when the mouse is actually moved.
I'm using the latest build (1.1.2259.29262), and the problem appears in earlier versions as well.
The issue for me is that I would prefer DragRepaint off, because I'm doing some extra stuff in a derived control, and would like to handle triggering repainting only when I need it.
Thanks
`m