Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSMQ implementation
Message
De
28/11/2005 10:02:09
 
 
À
31/03/2005 17:06:13
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00973622
Message ID:
01072453
Vues:
24
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
Fil
Voir

Click here to load this message in the networking platform