[python-win32] how to terminate a extended mapi session
Mark Hammond
mhammond at skippinet.com.au
Sat Aug 25 04:13:47 CEST 2007
> what must I take care of by myself when I want to terminate a program
> which
> communicates with Outlook through the extended mapi interface, i.e. in
> addition
> to session.Logoff and mapi.MAPIUnitialize?
> Currently I get the following errors upon prorgam termination and, what
> is more
> important, Outlook hangs and has to be restarted:
>
> Win32 exception occurred releasing IUnknown at 0x01fa09a8
You should ensure all references to MAPI objects have been dropped before
you uninitialize MAPI. pythoncom._GetInterfaceCount() will tell you how
many you have (probably 1 for each of the messages you see)
Cheers,
Mark
More information about the python-win32
mailing list