S
Stuart Leeks
I've written an outlook addin using ATL but have got an unusual performance
problem.
I'm handling the CommandBarEvents OnUpdate and in my event handler I create
a popup menu on the context menu. Under certain situations this performs very
badly. I've added tracing and the Controls->Add method on the context menu
command bar takes 5 seconds or more.
The problem generally only happens when you switch focus from outlook to
another application and then switch back. Is there something I can check to
avoid creating the context menu in this case? Does anyone have any ideas why
this call should take 5 seconds?
Any help would be appreciated!
problem.
I'm handling the CommandBarEvents OnUpdate and in my event handler I create
a popup menu on the context menu. Under certain situations this performs very
badly. I've added tracing and the Controls->Add method on the context menu
command bar takes 5 seconds or more.
The problem generally only happens when you switch focus from outlook to
another application and then switch back. Is there something I can check to
avoid creating the context menu in this case? Does anyone have any ideas why
this call should take 5 seconds?
Any help would be appreciated!