Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can an object know of it's existence?
Message
 
À
02/12/2003 12:17:07
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00855003
Message ID:
00855077
Vues:
19
>Hi Nick,
>>This can be questionable. Do you really exist, if nobody sees you (has a reference to you) ?
>
>IMHO it is not questionable. You definitely exist, but you might be slated for extinction (garbage collection - if your living quarters are in a *current* jvm, which will collect you even if there are still references to you, but the whole complex is inaccessible from the main class).
>
>In this state you are either on your way out (to be collected) or a memory leak (if your jvm only works with reference counting).
>

Yes, that's the reference that counts! :)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform