Closing instances of MSWord

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,
We have a .NET service which creates a shared instance of Microsoft Word.
This instance is created in the Constructor of the Shared class.
Once we have completed using the instance, we close/ quit the instance.
Again on a call to the shared class another instance is created.
And the cycle repeats.
What we face is an issue while trying to close the instance of word or
destroy the same when the service is stopped.
A hanging instance of MSWord is seen in TaskManager.
How do we get rid of this and make sure that all instances created by the
service are destroyed when the service stops?

Thansk for your time.
Rajesh
 
Back
Top