I need to debug an outlook addin written in python which crashes outlook in a reproducible manner. How could I do that? Is it possible to have the addin loaded from within a pdb session?
The addin uses the mapi msgstore wrappers from the spambayes project.
The crash occurs while the addin is starting a background job in a thread. MAPIInitialize is called by the new thread as required by the msdn docs. The thread then is busy for some tens of seconds exporting mailitems by calling MailItem.Save provided by the OOM. In general this works fine, but on one system outlook crashes after a while without any python traceback. Sometimes the problem will disappear, especially when I insert print statements in the export loop (heisenbug?).

Thasnk, Christian

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to