Forum Post: RE: Garbage collection - How Can I know the number of references to an object?

  • Thread starter Thread starter Thomas Mercer-Hursh
  • Start date Start date
Status
Not open for further replies.
T

Thomas Mercer-Hursh

Guest
Are you trying to write your own object manager instead of relying on garbage collection? If so, then each request for an object you would need to keep your own count and then decrement that count when the object is no longer used. I.e., do the same thing the GC is doing for you.

Continue reading...
 
Status
Not open for further replies.
Back
Top