Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to remove a timer
Message
De
04/03/1997 22:40:41
 
 
À
04/03/1997 22:19:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00022879
Message ID:
00022881
Vues:
43
>In my timer event, depending on some conditions, I need to remove the objec from memory.
>
>My object is oApp.oTimer.
>
>What will be the best way to remove it from memory?
>
>I tried This.Destroy() but it does not do the job. Also, there isn't a Release() method for the timer object.

Add a Release method to your timer class:

This.Enabled=.f.
release This

I highly recomend you to have the This.Enabled=.f. statement. I don't know excatly (!!:)) why, but you can have some very strange behaviors if you don't do it.

Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform