Forcing Word crash-logging

P

Peter Karlström

Hi

We have a Word 2007 COM-Addin running in a Webservice solution.
The application have been running fine until we added som more functionality.
The problem occurs when the service is called in a loop with +1 items.
The first document is created OK, and the Word process for this first call
is closed.
When the next instance of Word is started the new document is created and
some Buildingsblocks from the template is inserted OK in the document. Then,
when we try to insert som buidlingblocks from a global template, Word crashes.

Word crashes in the wwlib.dll component, and the diagnostics tool (DW20.exe)
is started.

Since DW20 is an interactive tool to gather crash information, we can not
see the results, and therefore not debug our application.

Is there a way to force logging when Word 2007 crashes.

Thanks in advance
 
C

Colbert Zhou [MSFT]

Hello Peter,

I am researching on this issue. I will reply as soon as I get any updates.
Sorry for let you waiting. The subscriber account issue is just fixed.


Best regards,
Ji Zhou
Microsoft Online Community Support
 
C

Colbert Zhou [MSFT]

Hello Peter,

As far as I researched, there is no special way to debug Word crash. It is
totally same to debug in this scenario as debugging other application
crashes. We use a a tool ADPlus to create a dump when the crash issue
happens. After that, we need to analyze the issue using delay mode windbg
dump analysis.

You can get more information about ADPlus from the following KB article,
http://support.microsoft.com/kb/286350

The painful point for this scenario is that Office series do not expose its
symbol. So even if we go this way, we are going to facing a lot of
unidentified numbers which are binary data and method entry. But if the
crash is caused directly from the addin codes, we can see the callstack
from the dump, so at least we will what cause the issue.


Best regards,
Ji Zhou
Microsoft Online Community Support.
 
P

Peter Karlström

Hi Colbert

The reason for asking is a very problematic webservice wich behave strange
and crashes Word for some reason.
What I have found out by making debug-logging in the project, is that the
webservice subroutine suddenly looses the document object And the Word
application object for no specific reason.
The last thing the code does is to insert an Autotextentry from the attached
template. Then when I try to save the document changes, word crashes.
After further checking I found out that it was using the document object or
the Word application object after the autotext insert, that made Word crash.

There is nothing wrong with the template och document itself. When I open
the crashed document, I can see the last inserted autotextentry in the
correct place.

The error only occurs when inserting more than one autotextentry in the same
document.

Now we have made another solution within the webservice in order to create
our documents, but this means more administrative work for the users in the
long run.

Testing this isn't easy, but if you are interested, I have all the parts for
client and server to reproduce the error.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top