General information
Category:
COM/DCOM and OLE Automation
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only