Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When I release last object reference, what should happen
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00394466
Message ID:
00394510
Vues:
11
Tom,
What is in your Destroy event? If the object is going away when you explicitly call the Destroy event, then it is not behaving as expected.

The Destroy event is triggered when the object is released. Calling Destroy shouldn't do away with anything.

>OK, it's stupid question time!
>
>I created an object called my TimerManager. To test it I ring the bell every 5 seconds. So I create my object with goTimerMgr = newobject("TimerMgr", "TimerMgr.prg"). Don't laugh, it works. When I do goTimerMgr.destroy it goes away, as expected.
>
>But I expected that the command "release goTimerMgr", as well as the command "goTimerMgr = null" would do the same thing, but they don't.
>
>Did I misunderstand something? Does this only work for Linked Forms?
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform