Monday, March 29, 2004

How to fully close Excel when using COM Interop (addm: VS2003 & Excel "Leaking..." and Forcing Garbage Collection)

How to fully close Excel when using COM Interop

Josh Robinson also ran into and solved the "leaking" Excel issue that I mentioned here.


I think Josh's usage of ReleaseComObject in addition to GC.Collect is the "right" answer....




No comments:

Post a Comment

NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...

ALL comments are moderated. I will review every comment before it will appear on the blog.

Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...

I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...

Please see my comment policy for more information if you are interested.

Thanks,
Greg

PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...