ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Out of memory exception (https://www.excelbanter.com/excel-programming/386103-out-memory-exception.html)

[email protected]

Out of memory exception
 
Hi,

I have a C# Windows Form based application that has to create hundreds
of excel files. (At least some 500. This is minimum.)

When I ran this application, it threw "Out of memory exception" after
creating some 55 files.

Code calls all relevent APIs (Quit, Marshal.ReleaseComObject, etc and
finally excel application was set to null.). But still I get this
problem.

I observed, calling Quit and setting to null, does not immediately
delete Excel.Exe from Task Manager.

Any ideas would be greatly appreciated.

Thanks in advance,
Aravind



All times are GMT +1. The time now is 12:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com