Excel Add-in memory explosion
Posted
by tsinik
on Stack Overflow
See other posts from Stack Overflow
or by tsinik
Published on 2010-05-03T14:29:29Z
Indexed on
2010/05/03
16:58 UTC
Read the original article
Hit count: 239
I wrote a small .NET add in to excel 2007 that read data from external c++ api and display it inside an excel.
The task manager shows that I'm having a memory leak (the memory usage is inflate linearly up to 250MB after whitch it throws an "Excel cannot complete this task with available resources error") but the problem disappears as soon as I minimize the excel window.
The api uses delegates to return data and I update it into a dictionary.
another thread is updating the excel from the dictionary every second.
It is unlikely that the unmanaged code is responsible of the leak.
Does anybody have an idea what can cause this?
10x!
© Stack Overflow or respective owner