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

New Post: Excel slow to close

$
0
0
I am new to NetOffice and I am using it to create a robust application using Excel as the UI with lots of work begin done behind the scenes.

I generate reports so lots of Excel model access. At the moment I have not optimized the reading or ranges and am reading rows and cells of rows. It is currently slow but I haven't finished the application and waiting to optimize at the end.

I work with a lot of tables. So list rows and list columns get used alot.

So the problem:
When I close Excel it hangs for a long time trying to close. Sometimes it doesn't close with the CPU spiked.

I do not have any on close code. I assume it is the clean up process. The disposing of all the COM objects. I have read the article on how NetOffice handles COM Objects. I'll read it again though. I even tried adding some dispose calls to try to minimize the amount of objects needing disposal at the end; however, I have run into problems with objects being disposed of while I still need them. (my design issue).

What is the recommend pattern for usage, disposal and clean up?

Viewing all articles
Browse latest Browse all 1741

Trending Articles