I'm having problems with a mapi tool I made. It's using simple mapi with redemption. When I insert multiple calendar items on at a time the add-in doesn't release the outlook folders: Sometimes after inserting 4 items sometimes after 20. It's really weird!

Translated from dutch:
Cannot open outlook screen, Cannot open the folders set.

Any idea what could cause this problem

I create the folder with the following code:
myApplication = new Outlook.Application();
RDOSession oSession = new RDOSession();
oSession.Logon(Missing.Value, Missing.Value, false, true, null, false);
RDOFolder publicCalendar;
RDOItems publicItems;

publicCalendar = oSession.GetSharedDefaultFolder(username, rdoDefaultFolders.olFolderCalendar);

I release the objects with the following code:

The only way to solve this is to close outlook from the processes and then opening outlook again.

Re: Visual Studio Tools for Office Mapi add-in doesn't release outlook folders

Cindy Meister

Since you haven't gotten a reply here, and your question isn't really VSTO-related, try asking in the general Outlook programming newsgroup. You'll find a much wider range of people who work with Outlook.