Word Hangs: opening DOC files in rapid succession

Add-in Express™ Support Service
That's what is more important than anything else

Word Hangs: opening DOC files in rapid succession
Crasher bug 
John Viele




Posts: 20
Joined: 2010-09-30
Our product uses Add-in Express for our Office integration. We've found that if a user opens doc files in Word with some time between each document, things are fine. But, if they launch documents into word in rapid succession, Word will hang and fail to load some of the documents, and multiple instances of WinWord.exe are seen in the process explorer (normally only one instance). Word is not totally hung, you can still close it, but often we see the following exception displayed by Word as it tries to exit:

Detailed technical information follows:
---
Date and Time: 10/7/2010 3:58:48 PM
Machine Name: <removed for privacy>
IP Address: <removed for privacy>
Current User: <removed for privacy>

Application Domain: C:\ADERANT\StarLaw\
Assembly Codebase: file:///C:/ADERANT/StarLaw/AddinExpress.WD.2005.DLL
Assembly Full Name: AddinExpress.WD.2005, Version=6.0.3043.2005, Culture=neutral, PublicKeyToken=e69a7e0f3592d2b8
Assembly Version: 6.0.3043.2005
Assembly Build Date: 5/1/2008 2:06:50 AM

Exception Source: AddinExpress.WD.2005
Exception Type: System.Runtime.InteropServices.SEHException
Exception Message: External component has thrown an exception.
Exception Target Site: CallWindowProc

---- Stack Trace ----
AddinExpress.Extensions.WindowsAPI.CallWindowProc(lpPrevWndFunc As IntPtr, hwnd As IntPtr, msg As Int32, wParam As IntPtr, lParam As IntPtr)
AddinExpress.WD.2005.DLL: N 00000 (0x0) JIT
AddinExpress.Extensions.ADXForm.CallWindowProcWithMainPos(winProc As IntPtr, handle As IntPtr, Msg As Int32, winPos As WINDOWPOS&)
AddinExpress.WD.2005.DLL: N 0015 (0xF) IL
AddinExpress.Extensions.ADXForm.AdxReject()
AddinExpress.WD.2005.DLL: N 0220 (0xDC) IL
Posted 07 Oct, 2010 17:21:27 Top
Eugene Astafiev


Guest


Hi John,

AddinExpress.WD.2005, Version=6.0.3043.2005, Culture=neutral,


I have noticed that you use an old build of Add-in Express. Please download and install a new one from http://www.add-in-express.com/downloads/adxnet.php.

Then please let me know whether it helps.
Posted 08 Oct, 2010 08:04:34 Top
John Viele




Posts: 20
Joined: 2010-09-30
I found a flag for the Windows Shell function which launches the .DOC file into Word which appears to somewhat improve the problem. Further testing will tell if it's still a problem for us or not. However, I'll bring it to the attention of our team that we're using an outdated version and see what's involved in upgrading to use your latest.
Posted 12 Oct, 2010 15:30:56 Top
Eugene Astafiev


Guest


Hi John,

Please keep me notified.
Posted 13 Oct, 2010 04:23:30 Top
John Viele




Posts: 20
Joined: 2010-09-30
Hi, guys. We are still having a problem with this. I'm working to track it down, but I'm seeing an error dialog that says:
What happened:

AddinExpress.WD.ADXWordTaskPanesManager error: Attempted to read or write protected memory. This is often an indixation that other memory is corrupt.

Where presumably this happened:

Error occurred in WordProfilingTaskPane.AdxReject. See 'Details' section to get more detailed information about the error.

*** DETAILS SECTION: ***

Detailed technical information follows: 
---
Date and Time:         10/21/2010 10:38:36 AM
Machine Name:          STARLAW-XPDEV2
IP Address:            172.25.7.130
Current User:          ADERANT_NAjohn.viele

Application Domain:    DefaultDomain
Assembly Codebase:     file:///C:/StarLawDev/80GAHF/SPOffice/SPOffice/bin/Debug/AddinExpress.WD.2005.DLL
Assembly Full Name:    AddinExpress.WD.2005, Version=6.2.3049.2005, Culture=neutral, PublicKeyToken=e69a7e0f3592d2b8
Assembly Version:      6.2.3049.2005
Assembly Build Date:   5/7/2008 2:06:50 AM

Exception Source:      AddinExpress.WD.2005
Exception Type:        System.AccessViolationException
Exception Message:     Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Exception Target Site: CallWindowProc

---- Stack Trace ----
   AddinExpress.Extensions.WindowsAPI.CallWindowProc(lpPrevWndFunc As IntPtr, hwnd As IntPtr, msg As Int32, wParam As IntPtr, lParam As IntPtr)
       AddinExpress.WD.2005.DLL: N 00000 (0x0) JIT 
   AddinExpress.Extensions.ADXForm.CallWindowProcWithMainPos(winProc As IntPtr, handle As IntPtr, Msg As Int32, winPos As WINDOWPOS&)
       AddinExpress.WD.2005.DLL: N 0015 (0xF) IL 
   AddinExpress.Extensions.ADXForm.AdxReject()
       AddinExpress.WD.2005.DLL: N 0220 (0xDC) IL 

Posted 21 Oct, 2010 09:58:36 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Hi John,

Is it reproducisble with other add-ins turned off? If that doesn't apply, I'd like that you describe in details how do you work with ADXWordTaskPane* classes. A code sample will be appreciated.


Andrei Smolin
Add-in Express Team Leader
Posted 21 Oct, 2010 11:03:55 Top
John Viele




Posts: 20
Joined: 2010-09-30
Hi, Andrei. No other addins loaded. I have just added Shared View which installs a Word addin but the behavior is identical with or without shared view installed.

I actually emailed you our AddinModule.cs class file for another thread on here, so you should have it in your support email already.

I'd like to reiterate that the problem only happens if I attempt to launch Word documents in rapid succession (double-clicking within our client application). If I pause a little bit between launching each document, then only one instance of WINWORD.EXE loads and everything is fine.
Posted 21 Oct, 2010 13:22:42 Top
John Viele




Posts: 20
Joined: 2010-09-30
By the way, do you know of any reason NOT to use System.Windows.Forms.Timer from within our ADXAddinModule-derived class?
Posted 21 Oct, 2010 14:41:28 Top
Eugene Astafiev


Guest


Hi John,

Thank you for providing us with your add-in module. Could you please describe your environment? OS? Bitness? Office version?

By the way, do you know of any reason NOT to use System.Windows.Forms.Timer from within our ADXAddinModule-derived class?


No, I don't. Actually, it depends on what you are going to do in the Tick event handler. We don't recommend using the Word or Outlook Object Model in the specified event handler.
Posted 22 Oct, 2010 03:18:48 Top
John Viele




Posts: 20
Joined: 2010-09-30
Well, I'm currently testing on XP with Office 2010. But the problem does not seem to be specific to a version of Windows. I have also reproduced it in Office 2007.
Posted 22 Oct, 2010 09:43:07 Top