Deleted Items

  • Thread starter Thread starter Rog
  • Start date Start date
Possible solution to your problem...

Hi again Rog,

I found the solution/workaround to my problem(s): Performance and the deleted items not showing the correct parent. Well in C++ anyway.

What I did was create a new instance of Outlook withing the plugin and get the MAPI namespace from there. That solves the deleted items not deleting and is a heck of a lot quicker since it does not seem to trigger the Tapi32.dll and Rtutils.dll (Telephony stuff).

//-------------------------------------------------------------------------
// This is the correct method of connecting to the outlook model
// (MAPI + new Outlook instance) this method is faster than using the
// application reference passed to the plugin. This seems to be because
// no default outlook automation occurs in this state.
//-------------------------------------------------------------------------
_ApplicationPtr objOutlook("Outlook.Application");
objOutlook.CreateInstance(__uuidof(Application));
objOutlook->GetNamespace(CComBSTR("MAPI"),&olNs);


Hope that solves your problem too.
Chris
 
Just an update:
Thanks so Ken and Dmitry's guidance I have solved the deleted items problem
It definately was items being held in memory.
The point where I found where my items were being held in memory was
when I use the InspectorWrapper. On close of the inspector I was not
releasing the items from memory.
Thanks guys.
 
Back
Top