When I put code which does some heavy processing of tables.. I show a container holding message at the top of other controls in the form. Then do the processing.. then clear the container.
In fact, my base form has the container (message holder), and whenever a message need to be put.. it is turned on with
MessageContainer.cMessage.Caption = myMessage
MessageContainer.Visible = .t.
That shows up at the middle of the form.
When the processing is over..
MessageContainer.Visible = .f. turns off the message.
The whole thing goes fine.
Now the problem....
Sometimes and in some user units I notice .. the message container refusing to show up until after the processing (which is put in code after the above code).. is over... either complete or a resonably over 50% or even 75% is over.. then shows up for few seconds until the natural hiding of that fires up.
On the whole, if the process takes .. let us say.. 5 seconds.. and the message container is supposed to be on top for 5 seconds.. it shows up for the last 2 seconds or so. There is no other error and everything is fine except the delay in show of message.
Could any one tell .. what is holding up and what could eliminate that.
My own trial/expriments done..
If a wait message put after the message and before processing.. firing is instantaneous. SO that makes me think.. the code is fired even before the screen is refreshed by OS.. and in that split second.. vfp processing continues with next line code..occupies the processor .. and when the cycle releases for another hardware avtivity.. screen refresh takes place showing up the window.
[Wait window codes fire extremely fast compared to own message container refreshing. So the wait messages appear faster rather than showing container.]
Can any one else help me with better insight on this subject. Thanks ahead for your valuble time.
ramani
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
In fact, my base form has the container (message holder), and whenever a message need to be put.. it is turned on with
MessageContainer.cMessage.Caption = myMessage
MessageContainer.Visible = .t.
That shows up at the middle of the form.
When the processing is over..
MessageContainer.Visible = .f. turns off the message.
The whole thing goes fine.
Now the problem....
Sometimes and in some user units I notice .. the message container refusing to show up until after the processing (which is put in code after the above code).. is over... either complete or a resonably over 50% or even 75% is over.. then shows up for few seconds until the natural hiding of that fires up.
On the whole, if the process takes .. let us say.. 5 seconds.. and the message container is supposed to be on top for 5 seconds.. it shows up for the last 2 seconds or so. There is no other error and everything is fine except the delay in show of message.
Could any one tell .. what is holding up and what could eliminate that.
My own trial/expriments done..
If a wait message put after the message and before processing.. firing is instantaneous. SO that makes me think.. the code is fired even before the screen is refreshed by OS.. and in that split second.. vfp processing continues with next line code..occupies the processor .. and when the cycle releases for another hardware avtivity.. screen refresh takes place showing up the window.
[Wait window codes fire extremely fast compared to own message container refreshing. So the wait messages appear faster rather than showing container.]
Can any one else help me with better insight on this subject. Thanks ahead for your valuble time.
ramani
(Subramanian.G),FoxAcc, ramani_g@yahoo.com