Importing addresses from Public Folders generate error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I import emailaddresses from Outlook in my application. This addresses are
stored in Contact Item Folders. When this folders are stored in my personal
folder I have no problems. But when they are stored in the Public Folder, I
receive errors after a while. I can import a number of addresses and receive
then the error ‘The operation failed, error code : 0x80004005’. The number of
addresses I can import varies. Sometimes about 250, sometimes just 10.

I work with Outlook 2003 and Exchange 2003. I tried this also at a customer
site, with the same result. Also Outlook 2002 generates this error.

Any ideas?
Tnhx.
 
What language are you using? Is it a .NET language? If so you might be
running into the 250 RPC channel limit. Every object you instantiate causes
a new RPC channel to be opened and once you hit the limit you must
explicitly release your objects and call the garbage collector on them to
free those channels.
 
I use Progress, but for the use of MAPI it's very simular to VB.
So your solution to release the object works fine.
Many thanks!
 
Back
Top