Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not Responding.
Message
From
12/01/2003 05:17:19
 
 
To
10/01/2003 09:49:13
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00740263
Message ID:
00740753
Views:
20
This message has been marked as the solution to the initial question of the thread.
Hi!

Esure
_VFP.AutoYield = .T.
If you afraid about performance, just switch it on for a few VFP commands at the end of a loop once/100 miliseconds, then switch it off. I can send you an example of code with such loop, if needed.

DOEVENTS also might help, but it works slower anyway because it also re-draws screens and checks for many other events, like clicks on UI controls (that might be not desired behavior).


>I have an action in the application taht takes 5 minutes or so to run.
>While running I update a list box with the status of the actions. During some longer actions I show a progress bar. This all works ok until I switch to another application and then back.
>
>At this point the application appears to hang with "not repsonding" on the title bar. I can see it's till processing because entries are being created in the database.
>
>Is there anything I can do to fix this?
>
>I tried a timer with DOEVENTS and thisform.refresh but it didn't work.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform