Word 2007 crashes on WindowDeactivate

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

Word 2007 crashes on WindowDeactivate
 
Brend Brend




Posts: 2
Joined: 2010-02-04
Hello!
I have the following problem:
WINWORD.exe crashes on WindowDeactivate event with this error message:

EventType : clr20r3 P1 : winword.exe P2 : 12.0.6514.5000
P3 : 4a89d533 P4 : mscorlib P5 : 2.0.0.0 P6 : 492b834a P7 : 260
P8 : f P9 : system.formatexception

This Exception raises randomly when Word closes.


Have any ideas how to debug through deactivate event ?


Thanks!
Posted 04 Feb, 2010 08:52:09 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hi Brend,

You can use System.Diagnostics.Debug.WriteLine and the DebugView utility. The latter can be found at http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx.


Andrei Smolin
Add-in Express Team Leader
Posted 04 Feb, 2010 09:57:08 Top
Brend Brend




Posts: 2
Joined: 2010-02-04
Hi Andrei!

Thank you for your response. But this tool did not help me.

I localize my problem, and find out that crash happens immediately after exiting empty onDeactivate event handler method:

private void adxWordEvents_WindowDeactivate(object sender, object hostObj, object window)
{

}

In case of crash none of my methods are called after this method. I think, that application crashes in this event or next closest Word event. But i can't debug after <adxWordEvents_WindowDeactivate>. AddinBeginShutdown does not reached.

I have no any ideas, why it happens and how to catch this error.
Posted 04 Feb, 2010 10:44:12 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hi Brend,

Can you send me a project reproducing this issue to the support e-mail address (see readme.txt)?

I also need to know the following stuff:
- Windows version and SP
- Office version and SP
- Add-in Express build number


Andrei Smolin
Add-in Express Team Leader
Posted 04 Feb, 2010 11:04:57 Top