0x80010108 with Static object

J

JStites

I have solved my problem but am curious as to why it solved it.

I was receiving the error "The object invoked has disconnected from its
clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED))" at
"Word.DocumentClass.get_Bookmarks()". The line of code it fails on is
"m_oDoc.Bookmarks.Exists(bookmark)".

I received this error when my Word.Document object was static. If I remove
the static property then I do not receive this error. It is a fairly long
process that my code is running with Word and it also initializes the
Word.Document object often. Does anyone know why this is? Thanks for any
help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top