none
Outlook2013 Event does not fire on some machines RRS feed

  • Question

  • Hello!

    I have a problem with my Addin on some Machines, that I cant reproduce.

    Problem:
    The user scrolls in his inbox and doubleclicks an mailitem (mailitem isnt selected before doubleclick). For the user, nothing happens. The Mailitem isnt opened. But it is now selected and when the user retry to open it by the double click, it works.

    On my and some other machines it works. Scrolling in the inbox doubleclick an item and it opens. 
    I compared the active addins on the machines where it works and where not. But nothing special is installed. 

    What does my Addin currently do:
    In capture the Explorer_SelectionChange and _NewInspector Events. In the Events I check, that i know about the mailitem and when not, I capture the Events from the Mailitem. All Objects that where I capture events are added to a Dictionary. I use the Dictionary to hold the reference and check, that i dont double capture events. 

    Over a debug txt file i found which events on both machines called, but I dont understand why it is different.

    [Machine where the doubleclick isnt working]
    30.05.2016 17:05:13	INFO	EVENT wrappedExplorer_SelectionChange(Outlook.Explorer explorer) fired.
    30.05.2016 17:05:13	INFO	EVENT ThisAddin_NewInspector fired.
    30.05.2016 17:05:13	INFO	EVENT ThisAddin_NewInspector WrapMailItem(inspector).
    30.05.2016 17:05:13	INFO	WrapMailItem(Outlook.Inspector inspector) - add Inspector to Dictionary.
    30.05.2016 17:05:14	INFO	WrapMailItem(Outlook.MailItem mailItem) - Inspector is already in the Dictionary.
    30.05.2016 17:05:14	INFO	EVENT wrappedExplorer_SelectionChange(Outlook.Explorer explorer) end of Event reached.
    30.05.2016 17:05:14	INFO	EVENT wrappedExplorer_SelectionChange(Outlook.Explorer explorer) fired.
    30.05.2016 17:05:14	INFO	WrapMailItem(Outlook.MailItem mailItem) - Inspector is already in the Dictionary.
    30.05.2016 17:05:14	INFO	EVENT wrappedExplorer_SelectionChange(Outlook.Explorer explorer) end of Event reached.
    30.05.2016 17:05:14	INFO	EVENT wrappedExplorer_SelectionChange(Outlook.Explorer explorer) fired.
    30.05.2016 17:05:14	INFO	WrapMailItem(Outlook.MailItem mailItem) - Inspector is already in the Dictionary.
    30.05.2016 17:05:14	INFO	EVENT wrappedExplorer_SelectionChange(Outlook.Explorer explorer) end of Event reached.
    30.05.2016 17:05:14	INFO	EVENT wrappedExplorer_SelectionChange(Outlook.Explorer explorer) fired.
    30.05.2016 17:05:14	INFO	WrapMailItem(Outlook.MailItem mailItem) - Inspector is already in the Dictionary.
    30.05.2016 17:05:14	INFO	EVENT wrappedExplorer_SelectionChange(Outlook.Explorer explorer) end of Event reached.
    
    [Machine where the doublick is working]
    30.05.2016 17:08:32	INFO	EVENT wrappedExplorer_SelectionChange(Outlook.Explorer explorer) fired.
    30.05.2016 17:08:32	INFO	EVENT ThisAddin_NewInspector fired.
    30.05.2016 17:08:32	INFO	EVENT ThisAddin_NewInspector WrapMailItem(inspector).
    30.05.2016 17:08:32	INFO	WrapMailItem(Outlook.Inspector inspector) - add Inspector to Dictionary.
    30.05.2016 17:08:32	INFO	WrapMailItem(Outlook.MailItem mailItem) - Inspector is already in the Dictionary.
    30.05.2016 17:08:32	INFO	EVENT wrappedExplorer_SelectionChange(Outlook.Explorer explorer) end of Event reached.
    30.05.2016 17:08:32	INFO	EVENT wrappedExplorer_SelectionChange(Outlook.Explorer explorer) fired.
    30.05.2016 17:08:32	INFO	WrapMailItem(Outlook.MailItem mailItem) - Inspector is already in the Dictionary.
    30.05.2016 17:08:32	INFO	EVENT wrappedExplorer_SelectionChange(Outlook.Explorer explorer) end of Event reached.
    30.05.2016 17:08:33	INFO	EVENT mailItem_Open fired.

    As you can see, on the working machine the mailitem_open is fired. On the machine where it isnt fired, the selection changed event is called a second time.

    I have no idea what it could be. In no event in complete Addin I change the "Cancel" argument. So I dont know why the Mailitem_Open isnt fired.

    Maybe someone has an idea how to find the problem?

    tia

    Alex

    Outlook 2013 (Exchange / dynamics crm)
    Visual Studio 2013/2015


    • Edited by DerAlex2016 Tuesday, May 31, 2016 2:23 PM misleading
    Tuesday, May 31, 2016 7:24 AM

All replies

  • Hi Alex,

    What is Outlook version in worked and non-worked machines? In non-worked machines, did other functions in your add in work correctly? If you disable your add in in non-worked machines, will the mailitem be opened by first double click?

    In addition, I suggest you create a new add in which contains the related code, test whether this issue still exist. If it does, it would be helpful if you could share us your code, and then we could try to reproduce this issue.

    Best Regards,

    Edward


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Wednesday, June 1, 2016 2:37 AM
  • Hello Edward,

    alle machines uses Microsoft Outlook 2013. Its not only one machine where the doubleclick problem exists. I tests it on 9 machines. On 5 Machines it works and on 4 not. The four machines where it isnt working doesnt have other addins like machines where it is working. I compared already. If the four machines disable my Addin, the doubleclick is working. 

    I think I will try it with a lighter addin which does the same Event registrations.


    Thursday, June 2, 2016 10:24 AM
  • Hi DerAlex,

    It seems your issue is related with your add in, if you could reproduce your issue with a lighter add in, I suggest debug your add in, and check which line cause this issue. It would be helpful if you could share us your lighter add in and details steps.

    Best Regards,

    Edward


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Friday, June 3, 2016 3:21 AM