Thread: SuppressFinalize

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    SuppressFinalize

    Hello everyone,


    In my understanding, this method only prevents GC from invoking Finalize method of the instance, it does not prevent GC from reclaiming the memory consumed by the instance? Right?


    thanks in advance,
    George

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    You ask a lot of questions that are easily answered by googling.
    I'll give you a hint, check and compare the following google keywords with your original question:

    http://www.google.se/search?hl=sv&q=...finalize&meta=

    Then check out one of the top results from the search for your answer.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    1,579
    Thanks Magos,


    I have a further question about Dispose pattern after study.

    http://msdn2.microsoft.com/en-us/library/b1yfkh5e.aspx

    What are "MANAGED resources"? As mentioned in the MSDN link "// Clear up MANAGED resources here."? In my understanding, managed resource is a C# class which implements IDisposable interface or have a Finalizer, and such class may have wrapped native resource. Not sure whether my understanding of the concept of managed resource is correct?

    Quote Originally Posted by Magos View Post
    You ask a lot of questions that are easily answered by googling.
    I'll give you a hint, check and compare the following google keywords with your original question:

    http://www.google.se/search?hl=sv&q=...finalize&meta=

    Then check out one of the top results from the search for your answer.

    regards,
    George

Popular pages Recent additions subscribe to a feed