Unknow exception

  • Thread starter Alexandr Kalugin via OfficeKB.com
  • Start date
A

Alexandr Kalugin via OfficeKB.com

Hi!

I have such code

try {
...
} catch(_com_error e) {
_bstr_t msg = e.ErrorMessage();
MessageBoxW(NULL, msg, DEFMSGBOXCAPTION, MB_ICONERROR);
}

Inside the try there is a piece of code iterating through mail items
collection inside the MAPIFolder,
getting subjects and sender names.

Sometimes I get strange error:
program hangs somewhere inside the try for about 10 minutes and then i
get _com_error with such description "Unknown error - 9ACCCC0F"

the error appear very seldom, so I cant repeat it under debugger

Have somebody ever faced with such problem?

I am using C++\ATL, Visual Studio 7, MS Outlook 2003

Thanks
 
D

Dmitry Streblechenko

Which line of code exacly causes that exception? Do you have a sample code
snippet that reproduces the problem?

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

Alexandr Kalugin via OfficeKB.com

Dmitry said:
Which line of code exacly causes that exception? Do you have a sample code
snippet that reproduces the problem?
No. The thing is that I cant reproduce the problem.
 
D

Dmitry Streblechenko

Did you try ot put some kind of logging to figure out the line where the
exception happens?

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

Alexandr Kalugin via OfficeKB.com

Dmitry said:
Did you try ot put some kind of logging to figure out the line where the
exception happens?

I dont see the point of doing so in my case. I was just wondering if somebody
have ever had _same_ problem.
 
D

Dmitry Streblechenko

The point is to run the code on a machine where this error occurs (since you
apparently cannot reproduce it in your debug environment) and see which line
of code is the culprit.

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

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