View Single Post
  #2  
Old December 5th 06, 07:13 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Redemption Inbox problem + instability

What is the real item count as reported by Outlook itself? Are you sure both
Redemption and Outlook are using the same MAPI profile?
Since you are using .Net, most likely you are running out of the 255 RPC
channels limit imposed by Exchange. .Net does not immediately release COM
objects, you need to do that explicitly using Marshal.ReleaseCOMObject() in
the loop. Avoid using multiple "." notation to make sure there are no
implicit variables created by the compiler.

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

"mirzoni" wrote in message
...

I have an app that uses redemption and mapi to access the emails in an
exchange mailbox.

Redemption:
Dim FolderItemsREDInbox As Redemption.RDOFolder
FolderItemsREDInbox = session.GetDefaultFolder(6)
(loads OK)

mapi:
Dim Folder As Outlook.MAPIFolder = oNS.GetDefaultFolder(6)
Dim FolderItems As Outlook.Items = Folder.Items
(also loads OK)

(note that both are pointing to the Inbox)
however, then i do the following:

Dim HowManyItemsREDInbox As Integer
HowManyItemsREDInbox = FolderItemsRED.Items.Count
i get: HowManyItemsREDInbox = 25

and
Dim HowManyItemsMAPIInbox As Integer
HowManyItemsMAPIInbox = FolderItems.Count
i get: HowManyItemsMAPIInbox = 50

how can this be? this is really mesing up some things for me over here!


ALSO:
when I load 500+ items redemptions becomes unstable by errors occurring
randomly.
( as per recommendations on the official redemption site i have used:
I have used a global var for the redemption instance
+
i have MS Outlook 2003 SP3 (11.6568.6568 version)
)

can anyone out there shed some light on these two issues?

Regards


--
mirzoni
------------------------------------------------------------------------
mirzoni's Profile: http://www.officehelp.in/member.php?userid=5392
View this thread: http://www.officehelp.in/showthread.php?t=1277781

Posted from - http://www.officehelp.in



Ads