Strange Outlook activation problem

  • Thread starter Thread starter Ulrik
  • Start date Start date
U

Ulrik

Hi,

I have written a com-addin with the Explorer framework based on Randy Byrnes
ItemsCB

Now have users experienced a strange bug:

Steps to reproduce:

1) In Outlook they have a task list opened with a detailed list view with
the Complete box visible. "Allow in-cell editing is checked
and the "Show new item row" is unchecked.
2) One task in the list is selected and has the Complete box checked.
3) They align another application next to the Outlook window and activates
this application.
4) Returns to Outlook and tries to uncheck the task directly *without*
activating Outlook first.
5) This fails, and the Complete field remains checked, the "uncheck" fires
first only when they click on the item second time.
Sometimes a new blank tasktem is displayed when they ty to check the
Complete field without activating Outlook first.

This worked perfectly before they had the com-add in installed. I use the
Explorer wraps in the code to hide/unhide a commandbar. I' ve tried to
disable calls in the Explorer events to RefreshToolbar procedure, with no
luck.

Any ideas?

The events are fired as follows when trying to uncheck it directly:
========================
m_objExpl_Activate
m_objExpl_Activate
m_objExpl_SelectionChanged
m_objExpl_Activate
m_objExpl_Activate
m_objExpl_SelectionChanged
m_objExpl_Activate
m_objExpl_Activate

Outlook 2003 English version SP3
Windows XP English version SP2

Rgds Ulrik
 
There have been a few versions of ItemsCB out there and no one can know how
you've modified the copy you used. You will have to see yourself what's
happening and what your event handlers are doing. You can also try using a
bare-bones addin that doesn't use wrapper classes and such to see how events
are fired and what happens in that case and compare things to how they
happen with your addin.
 
Thanks for your answer

I have found the bug: The bug was caused by a DoEvents in the
following event which caused the bug. After removing the DoEvents
it works perfectly. :-)

Private Sub m_objExpl_Activate()

On Error Resume Next

DoEvents

Call RefreshToolbar(m_objExpl.CurrentFolder)

End Sub

Rgds Ulrik
 
Back
Top