I have a VB6 application which creates and displays mail items in Outlook using Redemption's RDO. Everything works except after my application terminates the window of every mail item originally created and displayed by my application becomes unusable, i.e. I cannot send, save or print from that window.
Requested clarification: I create the items using
GetDefaultFolder(olFolderDrafts).Items.Add and display them calling the
Display method after I attached a file. The user has to send the item explicitly.
Depending on the action I get different generic messages, like "could not send mail" or "the messaging interface returned an unknown error".
I'm really desperate because I've run out of ideas.
What I've tried:
CreateObject(for the Outlook instance)
Some more information:
EDIT: I downloaded OutlookSpy and after my window becomes unusable, every non-trivial action returns the error code 0x800706BA (
RPC_S_SERVER_UNAVAILABLE). I assume that somehow the connection to the Exchange server is closed for that specific mail item.
EDIT 2009-11-17: If anyone has some more suggestions I'm still interested!
"creates and displays" is a little vague. Are you creating mail messages and putting them in the outbox? Are you actually sending the messages?
Outlook crashing is not a big deal. Or, rather, it is a big deal but is relatively common. Not being able to handle mail is pretty darn annoying. I have run into messages that are locked before. On some cases, I have had to move them away from the outbox into some other folder and then move them back. Sometimes that is enough to get them to go out.
User contributions licensed under CC BY-SA 3.0