Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timers in COM servers
Message
De
08/09/1999 19:24:06
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00262490
Message ID:
00262659
Vues:
18
>>I could have sworn that I remembered seeing an example of doing something like this, so I went digging, and found the server example that shipped with VFP 5, that implements a pool in VFp using timers. So I compiled my project in VFP 5 and it worked! Did we lose something that I am not aware of? Do timers not work in COM servers any more? On my machine, running the following server as either a single use, multi-use or out of proc server produces no results. No errors, it just doesn't work.
>>
>>Here is my code, if you want to try it.
>>
>>
>>Then to test, use the following in the command window:
>>
>>oCOM = CREATEOBJECT("MacCOM")
>>oCOM.DoMethod("RunQuery")
>>?oCom.Done
>>
>>you can tell it didn't run because subsequent check of oCom.Done never return .T.
>
> Hmm. I just tried your code and it worked fine for me, under VFP 6. I even tried it a few times and changed the timeout value to something larger. Before the event fires, it's .F., after it's .T.

Duhh- my sample code shows instanciating the Fox object instead of the COM server. It works on my said with the native object as well- did you try it with the COM server?
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform