Sited Component finalizer

Topics: CAB & Smart Client Software Factory
Jul 22, 2005 at 5:43 AM
originally posted by: FrancoisTanguay

It should exist and call Dispose(false).

As it is now, Dispose(bool) isn't called when the object is gc'ed.
Jul 22, 2005 at 8:10 AM
originally posted by: BradWilsonMSFT

SitedComponent doesn't have any unmanaged resources, thus it doesn't have a finalizer.

If you have unmanaged resources as a sited component, you should add the finalizer to your object and make this call yourself.