Code to release COM object.

Gopesh9
Posted by Gopesh9 under ASP.NET category on | Points: 40 | Views : 801
The method which is used to release COM object is the static method.

private static void ReleaseComObject(object active)
{
if (active != null)
{
Marshal.ReleaseComObject(active);
active = null;
}
}

Comments or Responses

Login to post response