none
ItemChanged event for Outlook add-in RRS feed

  • Question

  • I'm developing an Outlook Add-in that subscribes to the item changed event for appointment items.   Sometimes when a meeting is cancelled the itemchanged event is triggered but the meeting status remains as "olMeeting" instead of "olMeetingCanceled".   It rarely ever occurs but we'd like to know what is happening here.  Is this a bug with VSTO?   Thanks. 

    Tuesday, April 26, 2011 10:10 PM

All replies

  • Hello Alex,

    I don't think it's a Bug in Outlook. I belive that you have cached data somewhere.
    A double reference to the appointment maybe. You need to relese the reference and

    do a 

    GC.Collect()
    GC.WaitForPendingFinalizers()

    somewhere.
    Eventually remember the EntryID, release the Appointment and reload it.

    Since I don't know the code it's vague to say something concrete.
    If you have a small project to reproduce the behavior we can have a look and search for the cause.

    Greets - Helmut


    Helmut Obertanner [http://www.x4u.de] [http://www.outlooksharp.de]
    Wednesday, April 27, 2011 5:43 AM
    Answerer
  • Thanks Helmut,

    You are correct we do cache appointment item data.   Can elaborate more on how a double reference can cause this problem?   

    Thanks, 

     

    Friday, April 29, 2011 8:40 PM
  • Hi Alexkfh,

    Please check this article: http://www.ehow.com/how_5120974_remove-duplicate-appointments-outlook.html to see whether it helps you.

    Best Wishes,

    Wednesday, May 4, 2011 8:20 AM
  • Hi Alexkfh,

    Have you resolved your problem yet, and does the suggestion help you? If you still have any concern on the thread, feel free to follow up.

    Best Regards,


    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, May 9, 2011 8:57 AM