Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / July 2004

Tip: Looking for answers? Try searching our database.

OutlookXP strange problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dorutzu - 29 Jul 2004 14:51 GMT
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
Eric Legault [MVP - Outlook] - 30 Jul 2004 19:31 GMT
Could you post some of your code?

Signature

Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/

> Hi,
>
[quoted text clipped - 14 lines]
>  Thanks,
>     Doru
Doru K - 30 Jul 2004 20:21 GMT
Hi,

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

Doru
Doru K - 30 Jul 2004 22:57 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.