Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pausing in my .dll
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00315821
Message ID:
00316275
Vues:
20
>FWIW, you have to be careful with what you use Sleep for, because it suspends VFP's main thread. In a DLL it's probably safe to do this, but in other situations using Sleep causes all of VFP to freeze up including possible events that might be firing from ActiveX control and the like.
>
>+++ Rick ---
>
>

Thanks, Rick. That's worth a lot. Would VFP actually lose the events from an ActiveX (or Windows) or would it just queue them up and they hit all at once when it "wakes up"?


>>>I am working on a web page that uses a created VFP .dll. I need to put a pause in the .dll while it waits for a file. I have set up a do while statment until it returns which sends the utilization up to 100%. I've tryed using a timer, but the time doesn't seem to fire in the page. Has anyone experienced similar problems?
>>>
>>>Chris
>>
>>You could try using Sleep fromthe Windows API:
>>
>>DECLARE Sleep IN WIN32API INTEGER
>>
>>
>>Sleep(1000)
>>
>>The parameter is in milliseconds. Note that "Sleep" is case sensitive!
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform