Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

Commented Unassigned: Memory leak using Excel workbook [21994]

$
0
0
Hi,
I'm having an issue with workbooks property in Excel.
What I'm trying to do is a loop on a same Excel application object:
1. open a workbook
2. read some data
3. close the workbook
4. dispose the workbook
5. loop until there is no file left

But I can see in task manager that Excel memory is growing everytime I loop despite the dispose method. Is there a way to handle this (maybe I'm not using it the right way) or is that a bug?
Comments: ** Comment from web user: pasielsky **

Wonderfull!
DisposeChildInstances worked !
My program run in a minute instead of 40 minutes yesterday: that's terrific!

thank you so much, you made my day!


Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>