mapiinitialize failed with error code 0x8004010e

Nov 19, 2010 at 4:49 PM

MAPIInitialize() returns 0x8004010e. By searching on internet, it seems there is some kind of resource shortage.

Is there a way to know which resource is used out?

Nov 19, 2010 at 5:21 PM

What's the scenario where you're seeing this?

Nov 19, 2010 at 9:10 PM

My application is short lived,  it creates a MAPI connection to Exchange server, do some work like getting some MAPI properties of folders or messages.  After that the application exits.  It will run again some time later. How often it runs is determined by our serverapplications. It may run every 5 minutes, or every 30 minutes. Everything works fine at first. After some time this error starts to occur. It seems even though  the application exited some resource is still held somewhere. 

My MAPI application does not have GUI, it is a console application launched by a service process. I did not use impersonation, instead the service process uses CreateProcessAsUser to switch security context to a user that have rights to access Exchange resources.

Nov 19, 2010 at 9:26 PM

Which version of MAPI are you using? Is it the MAPICDO download? If so, make sure you're running the latest version, 8190.

Nov 19, 2010 at 9:42 PM

Yes, downloaded MAPICDO but version is 8153, not 8190. Any resource leak related fix from 8153 to 8190?

Nov 19, 2010 at 9:50 PM

Yes - you need to update: