Unloading VSTO COM Excel AddIn is not releasing memory occupied -
i have created com addin excel using vsto, i'm unloading addin somehow excel process not releasing memory occupied during addin initialization.
calling dispose() function on .net object making null, calling gc.collect(), gc.waitforpendingfinalizers() releasing small amount of memory particular object not common memory consumed excel process during addin initialization, i've used following options.
marshal.finalreleasecomobject(worksheet);
marshal.finalreleasecomobject(globals.thisaddin.application.activeworkbook);
even if close workbook memory associated excel not releasing. appears excel process need flush memory not doing.
any suggestion welcome!!
Comments
Post a Comment