Subject | RE: [IBO] SQL-cursor (icon) |
---|---|
Author | Jason Wharton |
Post date | 2007-10-28T00:54:48Z |
Glenn,
I think it should look like this:
frm_basecomp.IBDB.BeginBusy(False);
Try
LoadMyPreferences;
Finally
frm_basecomp.IBDB.EndBusy;
End;
You are running the risk of calling EndBusy twice and you shouldn't do that.
Calling these methods should be carefully handled as they increment and
decrement counters internally.
Please try putting a TIB_Session component on your main data form and make
sure it is created first in the creation order and see if you can make that
module (or form) created first in your project and see if that takes care of
the problem.
Jason Wharton
> I use one IB_Connection, that is connected to a IB_Session-component.This doesn't look right.
> All queries and datasets are set to this IB_Connection at
> creation (in inherited FormCreate).
>
> My code is as follows:
>
> Try
> frm_basecomp.IBDB.BeginBusy(False);
> If Not LoadMyPreferences
> Then
> Begin
> frm_basecomp.IBDB.EndBusy;
> Exit;
> End;
> Finally
> frm_basecomp.IBDB.EndBusy;
> End;
I think it should look like this:
frm_basecomp.IBDB.BeginBusy(False);
Try
LoadMyPreferences;
Finally
frm_basecomp.IBDB.EndBusy;
End;
You are running the risk of calling EndBusy twice and you shouldn't do that.
Calling these methods should be carefully handled as they increment and
decrement counters internally.
> where IBDB is the IB_Connection (residing on a general formThat is really strange. There should be no flickering in this case.
> frm_basecomp).
> I debugged the application, LoadMyPreferences happens inside
> BeginBusy and EndBusy, still flickers however.
> I suspect setting the connection of queries and datasets atYes, that is fine.
> runtime is ok ?
Please try putting a TIB_Session component on your main data form and make
sure it is created first in the creation order and see if you can make that
module (or form) created first in your project and see if that takes care of
the problem.
Jason Wharton