Changes in meeting request are not getting saved properly. Disposing of inspector object

Answered Changes in meeting request are not getting saved properly. Disposing of inspector object

  • Thursday, February 23, 2012 10:24 AM
     
     

    Scenario:

    Open calendar and rename a meeting reuest by clicking on F2 and save changes. It shows me updated subject there but when i open it subject is old one.

    i am performing some operation on meeting request's send event. I think it is related to disposing of inspector object.

    Any suggestions?

All Replies

  • Thursday, February 23, 2012 10:39 AM
     
     

    Hello,

    Save the meeting request before accessing that property.


    Regards from Belarus (GMT + 3),

    Andrei Smolin
    Add-in Express Team Leader

    Please mark answers and useful posts to help other developers use the forums efficiently.

    • Marked As Answer by LoloPolo Thursday, February 23, 2012 11:05 AM
    • Unmarked As Answer by LoloPolo Thursday, February 23, 2012 11:05 AM
    •  
  • Thursday, February 23, 2012 11:11 AM
     
     

    Hi Andrei,

    I have done that but nothing happened.

    code:

     

    public void outlookApp_ItemSend(object item, ref bool cancel)

    {

                      Outlook.MeetingItem currentMeeting = (Outlook.MeetingItem)item;

     Outlook.AppointmentItem appointment = currentMeeting.GetAssociatedAppointment(true);

      Somemethod(ref  appointment ); // Call a method

    currentmeeting.save();

    appointment.Save();

    cancel=false;

    //In finally block I am releasing com objects including inspector but not application object

    }

    Any ideas?

  • Thursday, February 23, 2012 11:54 AM
     
     Answered

    > Open calendar and rename a meeting reuest by clicking on F2 and save changes. It shows me updated subject there but when i open it subject is old one.

    This looks like an issue related to levaing COM objects non-released. I suggesct checking if you release COM objects in SelectionChange and in InspectorActivate events.

    As to your code, I don't understand how it relates to renaming the meeting request.


    Regards from Belarus (GMT + 3),

    Andrei Smolin
    Add-in Express Team Leader

    Please mark answers and useful posts to help other developers use the forums efficiently.