Outlook Redemption MAPI_E_TOO_BIG

Posted on 2008-11-03
Last Modified: 2012-05-05

I would like to use redemption to save attachments (embedded messages) directly to an outlook folder.
When I iterate through the inbox, I encounter the following error after 250 mails (thats the limit by the exchange server):
Error in IMAPISession::OpenEntry: MAPI_E_TOO_BIG

How do I release the objects correctly ?

Please help
Thanks very much
Best regards
Heinz Dumfart

' sample code ( 2005) just to test iterating:


oMyRDOSession = New Redemption.RDOSession


oMyRDOInbox = MyRDOSession.GetDefaultFolder(Redemption.rdoDefaultFolders.olFolderInbox)

For i = 1 To oMyRDOInbox.Items.Count

  oMyRDOMail = oMyRDOInbox.Items(i)

  Debug.WriteLine(i & vbTab & oMyRDOMail.Subject)

  oMyRDOMail = Nothing

End If



Open in new window

Question by:duh123
    1 Comment

    Accepted Solution

    Got support from the developer of Redemption...

    Sulution: Do *not* use multiple dot notation and use Marshal.ReleaseComObjects

    That works fine!

    'Do NOT use eg. 
    x = objRDOMail.Attachments.Count
    'but use:
    objAttachments = objRDOMail.Attachments
    x = objAttachments.Count

    Open in new window


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Set OWA language and time zone in Exchange for individuals, all users or per database.
    This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now