Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multitasking from VFP
Message
From
19/07/2004 14:32:42
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00924617
Message ID:
00925876
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform