OFF97: "Access Violation" When You Add a Button to the OSB

Last reviewed: March 13, 1998
Article ID: Q159472
The information in this article applies to:
  • Microsoft Office 97 for Windows
  • Microsoft Windows NT, version 4.0

SYMPTOMS

When you add a new button to a toolbar on the Shortcut Bar in Microsoft Office 97, you may receive the following error message:

   An application error has occurred and an application error log is
   being generated.

   MSOFFICE.exe
   Exception: access violation (0xc0000005), Address: 0x77e72f88

and the Office Shortcut Bar stops responding.

CAUSE

This problem occurs when all of the following conditions are true:

  • You are running Microsoft Windows NT 4.0.

    -and-

  • The button you add to the Office Shortcut Bar points to a program that is an .exe file.

    -and-

  • The program in question contains no icons.

    NOTE: A program may contain no icons if it is an MS-DOS-based program, or if no icons were added when it was created. For example, the following files do not contains icons:

          Doskey.exe    (MS-DOS-based program)
          Edlin.exe     (MS-DOS-based program)
          Taskman.exe   (Windows NT program with no icons)
    
    
If the .exe file contains no icons, you cannot add a button to the Office Shortcut Bar that points to that program on a computer that is running Windows NT 4.0.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

To add a new button to the Microsoft Office 97 Shortcut Bar, use the following steps:

  1. Click the control menu in the upper-left corner of the Office Shortcut Bar. On the menu that appears, click Customize.

  2. Click the Buttons tab.

  3. In the list of toolbars, click the name of the toolbar to which you want to add a button, and then click Add File.

  4. In the Add File dialog box, select the program you want to add, and click Add.

The new button appears on the toolbar.

When you select a program to add to the toolbar in step 4, look at the icon to the left of the program name. If the icon is a generic window icon, the program you are adding may not contain icons. If this program is a .exe file, and you are using Windows NT 4.0, the Office Shortcut Bar may stop responding when you click Add.

This problem does not occur when any of the following conditions are true:

  • You add a button that points to a program that is a .bat, .cmd, or .com file.

    -or-

  • You add a button that points to a program that is a .exe file that contains one or more icons. (The icon appears in the Add File dialog box.)

    -or-

  • You use the Office Shortcut Bar under Microsoft Windows 95.


KBCategory: kbtool kbprb kberrmsg
KBSubcategory: offosb
Additional query words: OFF97
Keywords : offosb kberrmsg kbfaq kbprb kbtool
Version : WINDOWS:97
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 13, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.