InfoPath may crash when you repeatedly click button controls that change form content

Support for Office 2003 has ended

Microsoft ended support for Office 2003 on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article has been archived. It is offered "as is" and will no longer be updated.
When you fill out a Microsoft Office InfoPath 2003 form, the application may unexpectedly crash with an access violation. If the InfoPath 2003 form has several command buttons, and you repeatedly click the command buttons, the actions of the command buttons may cause the current view to update. When the current view updates, a crash may occur if a focus change occurs during the update. You may receive the following error message:
Microsoft InfoPath has encountered a problem and needs to close. We are sorry for the inconvenience.
The error message may report one of the following signatures:

Application  | Application Version | Module     | Module Version | Offset---------------------------------------------------------------------------InfoPath.exe   11.0.5531.0           Mshtml.dll   6.0.2800.1237    000b9562 InfoPath.exe   11.0.5531.0           Mshtml.dll   6.0.2800.1276    000a21e3

You may also receive other signatures with other module versions and with other offsets.
The problem is caused by a bug in a shared-system component (Mshtml.dll) that is used by InfoPath 2003 to display a form. The problem is not unique to InfoPath 2003. This problem may occur in other applications that use this component, such as Microsoft Internet Explorer. The problem is sporadic. However, the problem may occur more frequently on complex forms that use buttons to change field data and to cause view updates. The problem occurs when Mshtml.dll is processing the button-focus events, and HTML is reloading the document that hosts the buttons at the same time.
To work around this problem, manually change the XSL that is used for your solution so that the HTML for your form is slightly modified. To do this, follow these steps:
  1. Locate the following line of code in the XSL:
    <input type="button" ... />
  2. Replace the previous line of code with the following line of code:
    <input type="button" unselectable="on" ... />
    Note When you use the UNSELECTABLE attribute, you cannot select the button in Design mode. Therefore, you must replace the line of code after the form layout is complete. At runtime, the button is updated with the correct InfoPath 2003 button element, and the button will work as you expect. Because Mshtml.dll does not interpret the item as selectable, Mshtml.dll does not switch focus to the item during the page update. Therefore, a crash does not occur.
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

Article ID: 837013 - Last Review: 01/10/2015 15:12:57 - Revision: 3.0

Microsoft Office InfoPath 2003

  • kbnosurvey kbarchive kbmshtml kbnofix KB837013