문제

Hello i use MAPI API in Visual studio 2010.

when i use some operation in my custom MAPI class and my some few operations completed after when end program execution(debug mode) then outlook close automatically.

create session flag as below

MAPI_EXTENDED | MAPI_USE_DEFAULT | MAPI_NEW_SESSION

how to stop close outlook automatically ?

도움이 되었습니까?

해결책

Outlook will close when either all references to OOM objects are released or when a user closes the last Outlook window 9even if there are still references to Outlook objects). There is nothing you can do about that. The only workaround is to avoid using OOM and/or avoid keeping MAPI/Outlook objects referenced for any prolonged periods of time.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top