OutlookXP strange problem

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
 
D

Doru K

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



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Top