Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   Unknow exception (http://www.outlookbanter.com/add-ins-outlook/23490-unknow-exception.html)

Alexandr Kalugin via OfficeKB.com August 10th 06 05:55 AM

Unknow exception
 
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

--
Message posted via http://www.officekb.com


Dmitry Streblechenko August 10th 06 06:42 AM

Unknow exception
 
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

"Alexandr Kalugin via OfficeKB.com" u25068@uwe wrote in message
news:648b35decf81f@uwe...
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

--
Message posted via http://www.officekb.com




Alexandr Kalugin via OfficeKB.com August 10th 06 08:11 AM

Unknow exception
 
Dmitry Streblechenko wrote:
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.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200608/1


Dmitry Streblechenko August 10th 06 06:14 PM

Unknow exception
 
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

"Alexandr Kalugin via OfficeKB.com" u25068@uwe wrote in message
news:648c656dfe551@uwe...
Dmitry Streblechenko wrote:
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.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200608/1




Alexandr Kalugin via OfficeKB.com August 11th 06 04:30 AM

Unknow exception
 
Dmitry Streblechenko wrote:
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.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200608/1


Dmitry Streblechenko August 11th 06 07:19 AM

Unknow exception
 
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

"Alexandr Kalugin via OfficeKB.com" u25068@uwe wrote in message
news:64970a7e9c048@uwe...
Dmitry Streblechenko wrote:
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.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200608/1





All times are GMT +1. The time now is 09:08 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com