Information générale
Catégorie:
COM/DCOM et 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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement