View Single Post
  #10  
Old June 14th 06, 11:33 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Crash in GetMAPIOBJECT + Outlook 2007

I have never seen or heard about such a problem with MailItem.Save.
I strongly suspect that something happens in your code :-)

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"pete_42" wrote in message
oups.com...
YESYESYES!!!!!

Now it works. If I Invoke() the call manually it works. But now I found
a different problem.

Once I Save an unsaved mail, the "pMailItem" seems to become bad. I
can't pMailItem-Release it. Or Invoke Save again. Both causes a crash.

Does the Save invalidate the pMailItem? Don't I have to release it? Or
do I have to wait for the Save to finish? Somehow...



Ads