-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: NoLogic10
Message 6 in Discussion
New Message on MumbaiUserGroup
How to fully close Excel when using COM Interop
Reply
Reply to Sender
Recommend
Message 4 in Discussion
From:
NoLogic10
New Message on MumbaiUserGroup
How to fully close Excel when using COM Interop
Reply
Reply to Sender
Recommend
Message 1 in Discussion
From:
NoLogic10
I am opening new instances of Excel ( using COM Interop) from my
Winforms application (C#) and later even after I close all the Excel files
which I had opened from the application, I still find one Excel process still
running in the Task Manager.... Don't understand why ??? I have used the
following code to close the excel process :
while(Marshal.ReleaseComObject(objExcelSheets)>0){}
objExcelSheets = null;
while(Marshal.ReleaseComObject(objExcelWorkbook)>0){}
objExcelWorkbook = null;
while(Marshal.ReleaseComObject(objExcelApplication)>0){}
objExcelApplication = null;
GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();
As I had already mentioned, I find one Excel process still running in the Task
Manager and it goes off only when I exit from the Winforms Application.
My Question is : How do I fully close all the instances of the Excel process.
Thanks in Advance ...
View other groups in this category.
View other groups in this category.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]