Unable to open msg store if first prompt for password canceled



Hi,
<<This is a old topic but I have found the reason for this, but not a solution. The thread was started on 1st July 2008>>

If I use the account management API to get the account of a profile, and after that call IMAPISession::OpenMsgStore, it prompts for the password only once. For subsequent calls, it just returns the fail one provider error.

However, if use account management API for a profile and open the message store from a different profile, it works fine.

I have checked the code for account management, the code doesn't have any leaks and every thing is properly acquired and released. All this is being done in the application's main thread only.

I am really stuck because of this. Please advice.

Regards,
Ashutosh
.


Loading