Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multitasking from VFP
Message
De
19/07/2004 14:32:42
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00924617
Message ID:
00925876
Vues:
13
Well, I ran into a little snag.

I have this running as we defined but:

From the calling exe:
oitfapp=Createobject("itfcom.itfcomapplicationobject")
oitfapp.dotimerstuff()

&& dotimerstuff basically sets the timer to an interval of 2000
&& (2 seconds) and returns to the calling exe.

&& the timer adds 1 to the app's property nctr.

WAIT "" TIMEOUT 5.0
?oitfapp.nctr
WAIT "" TIMEOUT 5.0
?oitfapp.nctr
WAIT "" TIMEOUT 5.0
?oitfapp.nctr
WAIT "" TIMEOUT 5.0
?oitfapp.nctr
WAIT "" TIMEOUT 5.0
?oitfapp.nctr

When I run this from the command line using newobject rather than createobject like I do in production, it works fine. The nctr value is updated every 2 seconds.

When I run the above (uses createobject), the timer does not appear to run at all.

Any ideas? I have tried registering/unregistering, rebooting, everything I can think of.

John
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform