G
Guest
Hello,
I am working on an issue related with add-in for Outlook 2007. I need some
help fixing it.
The issue is,
I have written some code to handle the OnSelectionChange() event. I am
calling a function from OnSelectionChange() which in turn invokes
GetSelectionItem() and works on that item.
The OnSelectionChange() event is fired twice or thrice when the selection
changes. It works fine if I move between messages in the same folder, but
when I select a different folder Outlook 2K7 crashes. The reason being; when
folder selection changes the first event to get fired is for the selected
message from the previous selected folder rather than for the new selected
folder. The second event is for the folder.
The code expects the newly selected item to be a folder rather than a
message item, the code crashes due to this.
FYI, the same code works on Outlook 2003. I am not sure if anything changed
for Outlook 2007, or something more is required from my end.
Thanks in advance for any solution.
Thanks and Regards,
Zuber
I am working on an issue related with add-in for Outlook 2007. I need some
help fixing it.
The issue is,
I have written some code to handle the OnSelectionChange() event. I am
calling a function from OnSelectionChange() which in turn invokes
GetSelectionItem() and works on that item.
The OnSelectionChange() event is fired twice or thrice when the selection
changes. It works fine if I move between messages in the same folder, but
when I select a different folder Outlook 2K7 crashes. The reason being; when
folder selection changes the first event to get fired is for the selected
message from the previous selected folder rather than for the new selected
folder. The second event is for the folder.
The code expects the newly selected item to be a folder rather than a
message item, the code crashes due to this.
FYI, the same code works on Outlook 2003. I am not sure if anything changed
for Outlook 2007, or something more is required from my end.
Thanks in advance for any solution.
Thanks and Regards,
Zuber