Jump to content
Xtreme .Net Talk

MCSD2X

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by MCSD2X

  1. Nice try Madz. It would be nice if this issue was as simple as calling "Excel.Application.Close or something like this". You are trying to trivialize an issue that is much deeper than what it appears. When you use managed code to access an Office Application, a Runtime Callable Wrapper is created that keeps a reference count on the COM object (in this case, an office application). Therefore, all references must be released on the RCW or the COM object will not quit (even when calling the close or quit method of the object). For detailed information on this subject research Interop Services for Microsoft Office. To release references on the RCW lookup "System.Runtime.InteropServices.Marshal.ReleaseComObject(o)". There are several good articles published on the web that address this issue. Also, you may not see the Excel object terminate immediately in the task manager. The GC will terminate it in its own time (usually within 10 minutes).
×
×
  • Create New...