PC Review


Reply
Thread Tools Rate Thread

Determining if an Object is being referenced

 
 
Phil Jones
Guest
Posts: n/a
 
      4th Aug 2003
Is there a way to determine if an object is being referenced by any other
objects?

This is what the GC does to determine whether an object should be properly
destroyed. I was wondering if this functionality was available for general
use, or embedded within the GC.

Thanks everyone...
---
Phil


 
Reply With Quote
 
 
 
 
MSFT
Guest
Posts: n/a
 
      6th Aug 2003
All managed object are allocate from managed heap, the GC will trace this
process when an object is created, so that it know if a object is
referenced. Only with a object, we can't know if it has been referenced or
not. Following are some articles on this issue, hope them be helpfull to
answer your question:

Automatic Memory Management
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconautomaticmemorymanagement.asp

Programming for Garbage Collection
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconprogrammingessentialsforgarbagecollection.asp


Luke

"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
http://www.microsoft.com/security/se...s/ms03-026.asp and/or to
visit Windows Update at http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026."

 
Reply With Quote
 
MSFT
Guest
Posts: n/a
 
      7th Aug 2003
To supply, here is a good tool for visualizing and analyzing allocations on
the GC heap:

http://www.gotdotnet.com/Community/U...mpleGuid=32543
25d-a4aa-4bb3-aa86-c72d5104ec74

Luke

"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
http://www.microsoft.com/security/se...s/ms03-026.asp and/or to
visit Windows Update at http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026."

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can every object be serialized even with referenced object within in a complex scenario Tony Johansson Microsoft C# .NET 2 5th Mar 2010 04:27 PM
Fw: Referenced COM Object Versus Dynamic Load Of COM Object Claire Microsoft C# .NET 2 9th Oct 2008 03:17 AM
Referenced Object sandy Microsoft C# .NET 5 13th Aug 2008 01:38 PM
Referenced object on subform gets "object doesn't support this property or method" Brandon Schultz Microsoft Access Forms 1 1st Feb 2007 05:06 PM
Referenced object versus copy of object OpticTygre Microsoft VB .NET 4 18th Mar 2006 02:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:54 AM.