PC Review


Reply
Thread Tools Rate Thread

Collaboration Data Objects - [E_OUTOFMEMORY(8007000E)] CDO1.2.1, also use Redemption.

 
 
=?Utf-8?B?Um9nZXI=?=
Guest
Posts: n/a
 
      17th Feb 2004
CDO version 1.2.1 (installed from Office 2000 CD

I am writing a VC++ using CDO 1.2.1 and redemtion to each message in folders and produce RFC822 files. the applicaiton never finished all 1750 messages. It stopped on Sub Folder2 (around message#1650)

Now I am very sure the application raise error o
CurrentMsg = msgs->GetNext();

How can I resovle the problem.

--- Folder Structure ------

Inbox Folder (550 messages
- Sub Folder 1 (600 messages
- Sub Folder 2 (600 message


-- Part of source code -------

CDO121::FoldersPtr Folders = base_folder->GetFolders(
CDO121::MessagesPtr msgs
CDO121::MessagePtr CurrentMs

based_folder = base_folder->GetName();
msgs = base_folder->GetMessages()

Redemption::ISafeMailItemPtr sItem
hr = m_SafeMailItemFactory->CreateInstance(NULL, __uuidof(Redemption::ISafeMailItem), (void**)&sItem)

nTotalMsgCount = msgs->Count;

MsgCount = msgs->Count

nIdx =1
for (;

CurrentMsg = msgs->GetNext(); ===> APPLICAITON FAILS HERE!

hr = sItem->put_Item(CurrentMsg)
hr = sItem->raw_SaveAs(_bstr_t(MsgFile), _variant_t((long)Redemption:lRFC822));

if ( nIdx == MsgCount
break

nIdx ++




 
Reply With Quote
 
 
 
 
Dmitry Streblechenko \(MVP\)
Guest
Posts: n/a
 
      17th Feb 2004
See my reply to in the "MAPI Session timeout" thread.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


"Roger" <(E-Mail Removed)> wrote in message
news:3260E283-821E-410F-A752-(E-Mail Removed)...
> CDO version 1.2.1 (installed from Office 2000 CD)
>
> I am writing a VC++ using CDO 1.2.1 and redemtion to each message in

folders and produce RFC822 files. the applicaiton never finished all 1750
messages. It stopped on Sub Folder2 (around message#1650).
>
> Now I am very sure the application raise error on
> CurrentMsg = msgs->GetNext();
>
>
> How can I resovle the problem.
>
>
> --- Folder Structure -------
>
> Inbox Folder (550 messages)
> - Sub Folder 1 (600 messages)
> - Sub Folder 2 (600 message)
>
>
>
> -- Part of source code --------
>
> CDO121::FoldersPtr Folders = base_folder->GetFolders()
> CDO121::MessagesPtr msgs;
> CDO121::MessagePtr CurrentMsg
>
> based_folder = base_folder->GetName();
> msgs = base_folder->GetMessages()
>
> Redemption::ISafeMailItemPtr sItem;
> hr = m_SafeMailItemFactory->CreateInstance(NULL,

__uuidof(Redemption::ISafeMailItem), (void**)&sItem);
>
> nTotalMsgCount = msgs->Count;
>
> MsgCount = msgs->Count
>
> nIdx =1;
> for (;
> {
> CurrentMsg = msgs->GetNext(); ===> APPLICAITON FAILS

HERE!!
>
> hr = sItem->put_Item(CurrentMsg);
> hr = sItem->raw_SaveAs(_bstr_t(MsgFile),

_variant_t((long)Redemption:lRFC822));
>
> if ( nIdx == MsgCount)
> break;
>
> nIdx ++;
>
> }
>
>
>



 
Reply With Quote
 
Dmitry Streblechenko \(MVP\)
Guest
Posts: n/a
 
      17th Feb 2004
Since you are already using Redemption, try to create an instance of the
Redemption.MAPIFolder object, assign MAPIFolder.Item property to
base_folder, then use MAPIFolder.Items collection instead of the CDO Folder
object.
Since MAPIFolder.Items.Item() returns Redemption.MessageItem, you won't need
to use Redemption.SafeMailItem object.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


"Roger" <(E-Mail Removed)> wrote in message
news:0AC5A019-8D5F-4ACF-8DD7-(E-Mail Removed)...
> Dmitry,
>
> I try to release CurrentMsg ( CurrentMsg->Release() inside the for loop.

It doesn't help at all.
>
> Here is how I declare CurrentMsg
>
> CDO121::MessagesPtr msgs;
> CDO121::MessagePtr CurrentMsg;



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Collaboration Data Objects 1.2.1 cannot be installed with MS Excha Vince Microsoft Outlook Discussion 3 24th Jan 2008 11:00 PM
how do i install collaboration data objects =?Utf-8?B?RmFpdGg=?= Microsoft Outlook Installation 1 30th Aug 2006 01:44 PM
Can't install CDO (Collaboration Data Objects) Jim Microsoft Outlook 1 19th Jun 2004 08:54 PM
Collaboration Data Objects - [E_OUTOFMEMORY(8007000E) =?Utf-8?B?Um9nZXI=?= Microsoft Outlook VBA Programming 1 16th Feb 2004 02:55 PM
Collaboration data Objects Dave Chalk Microsoft Outlook Installation 2 2nd Nov 2003 02:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:42 PM.