Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can an object know of it's existence?
Message
 
To
02/12/2003 12:17:07
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00855003
Message ID:
00855077
Views:
18
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform