Tech Off Post

Single Post Permalink

View Thread: Rich Text Box Font
  • User profile image

    HMMM... now I am really confused, as I just found this:

    When and How to Use Dispose and Finalize in C#

    And it says:

    The Dispose Method—Explicit Resource Cleanup
    Unlike Finalize, developers should call Dispose explicitly to free unmanaged resources. In fact, you should call the Dispose method explicitly on any object that implements it to free any unmanaged resources for which the object may be holding references. The Dispose method generally doesn't free managed memory—typically, it's used for early reclamation of only the unmanaged resources to which a class is holding references. In other words, this method can release the unmanaged resources in a deterministic fashion.

    So I need to find more info on Dispose.