Subject | RE: [IBO] IB_Query.Next really slow |
---|---|
Author | Svein Erling Tysvær |
Post date | 2012-01-30T07:09:23Z |
> on several PC following code is really slow:...
>
> IB_Query.First;
> while NOT IB_Query.EOF do
> IB_Query.next;
> end;
>
> I found out, if I start the loop (via ButtonClick) and move the mouse outsideDoes it help using DisableControls? I.e.:
> the main window, the performance is nomal! Only if the mouse cursor is inside
> the window, performance is slow...
try
IB_Query.DisableControls;
IB_Query.First;
while NOT IB_Query.EOF do
begin
IB_Query.next;
end;
finally
IB_Query.EnableControls;
end;
HTH,
Set