OutlookXP strange problem

  • Thread starter Thread starter dorutzu
  • Start date Start date
D

dorutzu

Hi,

I'm working on an add-in for Outlook, and I have the following
problem:
- all works fine with Outlook 2003
- in Outlook XP works fine if I don't use any threads
- but it crashes (in Outlook XP) if I use a thread that calls one
of the methods called previously (when no threads were used, and
working fine), on a call to MailItem.Body

Does anybody have any idea why the same method works when I don't use
threads, and crashes when I do? Seems like this problem is fixed in
Outlook 2003.
And one more thing: when I call MailItem.Subject works ok (even on
the thread), but it only crashes for MailItem.Body.

Thanks,
Doru
 
Hi,

Never mind, I found the problem...I forgot to use CoInitialize().
Thanks for your answer anyway.

Doru
 
Hi,

Sorry about the previous answer with the CoInitialize...that was an
answer for some other question I posted.
About this problem, the thing is that if I use HTMLBody it works just
fine in OutlookXP, but if I use Body, it keeps crashing. (I avoid
posting code because it's written in VC++ not VB).

I would be gratefull for any explanation of the problem.

Thanks,
Doru
 
Back
Top