WD2000: Access Violation When You Use CommandBarButtonEvents Click Event Handler

Article translations Article translations
Article ID: 261158 - View products that this article applies to.
This article was previously published under Q261158
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

SYMPTOMS

When you use the CommandBarButtonEvents object's Click event handler to run a Document.Close on a document that is the last document opened, or when you move between open instances of Word, an exception access violation can occur. This can be frequently be seen in a COM add-in, because COM add-ins use the CommandBarButtonEvents event handlers to route events to an add-in function.

The closing of the last document can cause an exception access violation in Word within the MSO9.DLL module. The following error message typically is displayed when this condition occurs:
"The instruction at <0xXXXXXXXX> referenced memory at <0xXXXXXXXX>. The memory could not be read."

RESOLUTION

To resolve this problem, obtain the latest service pack for Microsoft Office 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
276367 OFF2000: How to Obtain the Latest Office 2000 Service Pack

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Microsoft Office 2000 Service Pack 2.

Properties

Article ID: 261158 - Last Review: February 28, 2014 - Revision: 1.2
APPLIES TO
  • Microsoft Word 2000 Standard Edition
Keywords: 
kbnosurvey kbarchive kbhotfixserver kbqfe kbhotfixserver kbqfe kbbug kbfix kboffice2000sp2fix kbqfe KB261158

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com