Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Jerky Animated Giff While Processing
Message
From
24/09/2008 14:20:02
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
24/09/2008 14:02:38
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01350136
Message ID:
01350269
Views:
37
>>>>Simply that. Due to the processing that is going on, the animated gif looks jerky, stopping and starting. Is there any way to have it run smooth while Foxpro is working?
>>>
>>>By "the processing that is going on", do you mean other processing in your VFP app (or other processing within your control), or other processing you have no control over?
>>>
>>>If it's within your own VFP app, you could put calls to DOEVENTS at strategic locations in your long-running code. For best results you could put it in the tightest loop(s) you can find and/or in code that is called frequently. If this addresses your particular issue, the more frequently DOEVENTS is called, the smoother your animation will be.
>>>
>>>If the issue is with long-running SELECTs or other SQL engine commands, check message#1153094
>>
>>I tried that, but it didn't make any difference. There are a fair amount of loops, etc, though I think most of the time is spent making calls out to a webservice. There may be no way of making the gif work smoother with that.
>
>If the webservice calls are currently synchronous, is it possible to make them asynchronous, and periodically poll the service to see if it's complete? Pseudocode:
>
>=StartAsyncWebServiceCall( parameters ... )
>
>DO WHILE NOT AsyncWebServiceCallComplete( )
>  DOEVENTS
>
>  SleepAPICall( 15 milliseconds )
>  * "Smooth" animation is about 30 frames/sec or faster, or ~30 milliseconds/frame
>  * To reliably get DOEVENTS calls at least every 30 milliseconds, you have to poll twice as fast,
>  * therefore 15 milliseconds apart
>
>ENDDO
>
I'll give it a try. BTW, you really got the network/web/services stuff down pretty good. Where were you during my HL7 project last year?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform