Deleted Items

Joined
Jun 27, 2005
Messages
5
Reaction score
0
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
 
R

Rog

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top