"File in Use by Another Program" After OLE Automation Session |
Q105410
If you run an OLE 2.0 automation session in which you create a WordBasic object in a client application (such as Microsoft Visual Basic version 3.0) that accesses Word for Windows as a server, the following error message may occur in the next session of Word when you try to save your NORMAL.DOT file:
This file is in use by another application or user.
(<path>\NORMAL.DOT)
The Word command line in your Windows REG.DAT file does not include
the /Automation switch. Specifically, in the CLSID key, under the WordBasic
(WordBasic) Class ID key, the LocalServer key value must
include the /Automation switch. If this switch is missing, the OLE 2.0
Automation (OLE Auto) transaction launches a session of Word that is
not completely removed from memory when you close Word. In other
words, it remains in memory as a "ghost" Word session. As a result,
the file handle to the NORMAL.DOT file remains open, and this prevents
you from saving NORMAL.DOT in a later Word session.
The "ghost" Word session does not appear in the Windows Task List. The
only way to close it is to exit and restart Windows.
-or-Double-click the WINWORD6.REG file.
Information in <drive and path>\WINWORD6.REG has been successfully registered in the registration database.
\
|-CLSID
|-{000209FE-0000-0000-C000-000000000046}=WordBasic
|-AutoConvertTo <optional key>
|-LocalServer=<path>WINWORD.EXE
|-ProgID=WordBasic
Note: There may be several other Class ID keys above the WordBasic
Class ID key, so you may need to scroll through several screens
to find it.<path>WINWORD.EXE /Automation
\
|-CLSID
|-{000209FE-0000-0000-C000-000000000046}=WordBasic
|-AutoConvertTo <optional key>
|-LocalServer=<path>WINWORD.EXE /Automation
|-ProgID=Word.Basic Additional query words: 6.0 object linking embedding wordbasic winword word6
Keywords : kbole kbofficeprog
Issue type :
Technology :
|
Last Reviewed: March 28, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |