Microsoft Knowledge Base Email Alertz

(837013) - Describes problems that may occur when you try to fill out an InfoPath form. The application may crash with an access violation. The problem is caused by Mshtml.dll that is used by InfoPath to display a form. A workaround is provided.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 837013 - Last Review: September 23, 2011 - Revision: 2.0

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

SYMPTOMS

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.

CAUSE

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.

WORKAROUND

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.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

APPLIES TO
  • Microsoft Office InfoPath 2003
Keywords: 
kbmshtml kbnofix KB837013
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Anjan Reported as Irrelevant  
Written: 11/4/2004 6:50 AM
I spent almost 1 day to figure out this problem. I was modifying my program suspecting that I'm doing something unusual. Anyway we live in microsoft world :)