M
Mark Smith
I am working in C++. When a new inspector is created, I create a toolbar
for it and hook up callbacks for the buttons and the close event. If the
inspector is viewing a non-sent e-mail, one of the buttons is supposed to
send the e-mail and then export the e-mail to another program.
If I call _MailItem::Send(), I get a security prompt and Outlook crashes.
If I go to MAPI and call SubmitMessage, the message is put in the Outbox to
be sent, but not sent immediately, plus the inspector stays open. If I call
_Inspector::Close(), Outlook crashes.
Neither of these crashes occur at the moment that I call the method, but
sometime after I have returned from the button callback.
I have tried to make sure all references to the inspector and mail item
(except the one used to call the method) are released before calling any of
these methods and all of the callbacks unhooked. This didn't make any
difference in the behavior.
Does anybody know what I might be doing wrong, or a different way of doing
what I am trying to do?
Thanks for any help.
Mark
for it and hook up callbacks for the buttons and the close event. If the
inspector is viewing a non-sent e-mail, one of the buttons is supposed to
send the e-mail and then export the e-mail to another program.
If I call _MailItem::Send(), I get a security prompt and Outlook crashes.
If I go to MAPI and call SubmitMessage, the message is put in the Outbox to
be sent, but not sent immediately, plus the inspector stays open. If I call
_Inspector::Close(), Outlook crashes.
Neither of these crashes occur at the moment that I call the method, but
sometime after I have returned from the button callback.
I have tried to make sure all references to the inspector and mail item
(except the one used to call the method) are released before calling any of
these methods and all of the callbacks unhooked. This didn't make any
difference in the behavior.
Does anybody know what I might be doing wrong, or a different way of doing
what I am trying to do?
Thanks for any help.
Mark