Problem with displaying mail items

B

Boaz Feldbaum

hello all,

I'm developing and outlook addin in ATL/C++. Environment is VS2005 &
Outlook2003. I want to display mail items from my addin. If I call to
pMailItem->Display() from within an OnNewMail sink function, it works just
fine. However, if I create a thread and call the above from within that
thread, I get an error code 0xdcd04005 and the following in the debugger
output window:



First-chance exception at 0x7c81eb33 in OUTLOOK.EXE: 0x80004002: No such
interface supported.

First-chance exception at 0x7c81eb33 in OUTLOOK.EXE: 0x80004002: No such
interface supported.

First-chance exception at 0x7c81eb33 in OUTLOOK.EXE: 0x80004002: No such
interface supported.

First-chance exception at 0x7c81eb33 in OUTLOOK.EXE: 0x80004002: No such
interface supported.

First-chance exception at 0x7c81eb33 in OUTLOOK.EXE: 0x80004002: No such
interface supported.

First-chance exception at 0x7c81eb33 in OUTLOOK.EXE: 0x8001010D: An outgoing
call cannot be made since the application is dispatching an input-synchronous
call.

'OUTLOOK.EXE': Loaded 'C:\Program Files\Common Files\Microsoft Shared\Smart
Tag\IETAG.DLL', No symbols loaded.

First-chance exception at 0x7c81eb33 in OUTLOOK.EXE: 0x80004002: No such
interface supported.

First-chance exception at 0x7c81eb33 in OUTLOOK.EXE: 0x80004002: No such
interface supported.

First-chance exception at 0x7c81eb33 in OUTLOOK.EXE: 0x8001010D: An outgoing
call cannot be made since the application is dispatching an input-synchronous
call.

First-chance exception at 0x7c81eb33 in OUTLOOK.EXE: 0x80004002: No such
interface supported.

First-chance exception at 0x7c81eb33 in OUTLOOK.EXE: 0x80004002: No such
interface supported.

First-chance exception at 0x7c81eb33 in OUTLOOK.EXE: 0x8001010D: An outgoing
call cannot be made since the application is dispatching an input-synchronous
call.

And also outlook becomes unstable. That is, sending mail messages hungs
outlook.

How can I display mail items from within my thread? All other methods of
pMailItem works fine also from within the thread, only Display() fails.

Need help.

Thanks a lot in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top