Information générale
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Brian,
After posting yesterday, I noticed your post. I suspect my timers are continuing to run and I did not even know it. The following is my com server app's DoGetBalance method. It is called from my main app when I want the COM server to kick off the timer that gets a balance:
LPARAMETERS tcinmate_number
this.cinmate_number=tcinmate_number
this.ladvised_getbal=.t.
this.obaltimer.interval=1
NODEFAULT
RETURN .t.
Notice the Com server app has a property named ladvised_getbal. I set it true and set the interval on the timer to 0.
In my timer's event():
this.interval=0
IF this.loparent.ladvised_getbal
this.loparent.ladvised_getbal=.f.
...do my getting of the balance stuff...
endif
So even though the timer may be running, because I set the property ladvised_getbal to false, it won't do anything.
My question: Did you find a way to truly make the timer stop running because even if it isn't doing anything I do not want mine to continue running either.
Thanks,
John
Précédent
Suivant
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