R
Ron
I have noticed a bunch of posts regarding the use of the Excel COM object
regarding the Excel process never dies. I noticed them because I also had
this problem.
I was ReleasingComObject from Marshal on all Excel Sheets, WorkBooks, And
Apps. ** while (Marshal.ReleaseComObject(myobj) > 0); **
I did App.Quit()
I Closed al work books and set
I set all objects to null.
Still the process ran....
My app is a console app that loops a list of clients and creates and saves
some excel docs. During testing, at the very end of the app I put a
Console.ReadLine() because any exceptions were written out to the Console
and pasing by ReadLin() I could read them with out the app closing.
I removed the ReadLine() and now when the app runs the Excel process closes.
NOTE: Before even when I manually closed the App the process still ran....
So, if anyone has a similar problem, mabey this will help...
Ron
regarding the Excel process never dies. I noticed them because I also had
this problem.
I was ReleasingComObject from Marshal on all Excel Sheets, WorkBooks, And
Apps. ** while (Marshal.ReleaseComObject(myobj) > 0); **
I did App.Quit()
I Closed al work books and set
I set all objects to null.
Still the process ran....
My app is a console app that loops a list of clients and creates and saves
some excel docs. During testing, at the very end of the app I put a
Console.ReadLine() because any exceptions were written out to the Console
and pasing by ReadLin() I could read them with out the app closing.
I removed the ReadLine() and now when the app runs the Excel process closes.
NOTE: Before even when I manually closed the App the process still ran....
So, if anyone has a similar problem, mabey this will help...
Ron