App slow without debugger and fast with debugger open ?!?! -
08-12-2004
, 04:44 PM
Hi,
I have created a custom button class for an application. It is based in
container, and contains several shapes, image and label.
Also I handle MouseEnter and MouseLeave, for hot-tracking effect.
I encounter have a strange behaviour:
If I put few buttons on a form (4-5) everything works OK
If I put more (9-10) the form start being very slow (mouse-enter and leave
seems to be raised slower - I have to wait on a button till it show
"activated" due to mouseenter code)
If I put even more (15+) the form lock while loading (so it seems to never
loads)
However, the most wierd thing happen now:
With 9-10 buttons (so form will load OK) if I open Debugger window and have
it on top, if I move the mouse over button on main form (which is behind
debugger window, but partially covered, so several buttons are visible),
they works like charm - the hoved effect happen instantly!
If I bring my form on top, it start being slower. But if I bring Debugger on
top again, the form from behind is fast again!
This happens with VFP8 and 9 Beta.
What could be the cause?
Any help will be appreciated!
Best regards,
Bogdan Zamfir |