Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSMQ implementation
Message
From
28/11/2005 10:02:09
 
 
To
31/03/2005 17:06:13
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00973622
Message ID:
01072453
Views:
26
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform