I have a real pain of an issue whereas the Excel.Application()
does not want to get released, no matter what. Even after a new class is instantiated and disposed immediately afterwards, it still appears in the process list.
if (_ExcelApp == null)
_ExcelApp = new Microsoft.Office.Interop.Excel.Application();
Dispose();
public void Dispose()
{
if (_ExcelApp != null)
{
try
{
_ExcelApp.Quit();
Marshal.FinalReleaseComObject(_ExcelApp);
}
catch (Exception) { }
_ExcelApp = null;
}
}
Please help!