Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thermometer Stops
Message
 
To
03/03/1999 17:32:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00193760
Message ID:
00193979
Views:
23
>>>I am displaying a thermometer, in a non modal form, during various operations. Sometimes the thermometer stops completely, like when I am locating files on a remote LAN. I assume this is happening because the thermometer is not getting any execution time. Is there anything I can do, so that it ticks some of the time. Thanks.
>>
>>If you want to force an update, you probably need to do something like oThermometer.refresh() from your code.
>>
>>
>>Wayne
>
>My code does not have control at the time. As soon as I get control back, I can update it again. What I don't like, are the long periods when the thermometer is frozen, while the system is doing something else. I've been assuming I just have to live with it, but was hoping someone might have a better idea.

No, you are pretty much stuck with the way it is because VFP is not multi-threaded. But, you can do some things in code during large processes to ensure an update. If you are appending files from say a flat file, you could append the data in chunks and update your progress bar at specified intervals.

HTH
Wayne
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform