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 **
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!