Losing the WindowSelectionChange event

D

David Thielen

Hi;

Occasionally the WindowSelectionChange event stops calling our event
handler. It has only happened twice in all of our testing this week so it is
very rare. But once we lose that our AddIn basically can't work so this is
critical.

It appears to only happen on Word 2007 - both cases were on Word 2007 and
this has never been reported on the old version which was installed almost
entirely on Word 2000/2002/2003.

Any ideas as to why and what we can do to fix this?

Our code is:
private Application applicationObject;
....
#if WORD2007
applicationObject.WindowSelectionChange += new
ApplicationEvents4_WindowSelectionChangeEventHandler(MainMenuOnUpdate);
#else
#if WORD2003
applicationObject.WindowSelectionChange += new
ApplicationEvents4_WindowSelectionChangeEventHandler(MainMenuOnUpdate);
#else
#if WORD2002
applicationObject.WindowSelectionChange += new
ApplicationEvents3_WindowSelectionChangeEventHandler(MainMenuOnUpdate);
#else
applicationObject.WindowSelectionChange += new
ApplicationEvents2_WindowSelectionChangeEventHandler(MainMenuOnUpdate);
#endif
#endif
#endif

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
W

Wei Lu [MSFT]

Hello Dave,

Since this happened occasionally, we may not reproduce this issue.

You may need to get what behavior your addin does and how the word load
your add-in to troubleshot.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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