Code to release a COM object

Nishithraj
Posted by Nishithraj under C# category on | Views : 1272
We should release the Unmanaged COM object at every time.

This is very important, otherwise memory can easily fill and the it can impact the perfomance badly.

Code to release component

System.Runtime.InteropServices.Marshal.ReleaseComObject(Component);

Comments or Responses

Login to post response