This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Garbage Collection

 
Kaustubh Bansal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible for an unreferenced object to be in use?



In this code, we are adding a button to a content pane to a frame. Is this content pane eligible for garbage collection?
 
Daesung Park
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The content pane is not garbage-collected as long as frame is a live object.
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kaustubh Bansal wrote:Is it possible for an unreferenced object to be in use?
Read your question very very carefully . . .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic