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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

jquery - Keeping Kendo Datepicker in min/max range -