0

Possible Duplicate:
How to properly clean up Excel interop objects in C#

I'm processing a spreadsheet in code, using the Microsoft.Office.Interop.Excel.Application class. when my code starts, I see EXCEL.EXE show up in my task manager. The trouble is, when the code is finished, it doesn't ever remove itself from the taskmanager, and trying to manually open excel files no longer works until I manually kill the process.

I'm closing any workbooks I open, but what do I have to do to clean up after this application class? I don't see a close or Dispose method.

Community
  • 1
  • 1
Adam Rackis
  • 81,646
  • 52
  • 262
  • 388

0 Answers0