Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Unknow exception

Geek News

Unknow exception
"Alexandr Kalugin via OfficeKB.com" <u25068[ at ]uwe> 8/10/2006 4:55:14 AM
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

Re: Unknow exception
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 8/10/2006 5:42:13 AM
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[ at ]uwe> wrote in message
news:648b35decf81f[ at ]uwe...
[Quoted Text]
> 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
>


Re: Unknow exception
"Alexandr Kalugin via OfficeKB.com" <u25068[ at ]uwe> 8/10/2006 7:11:03 AM
Dmitry Streblechenko wrote:
[Quoted Text]
>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.aspx/outlook-prog-addins/200608/1

Re: Unknow exception
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 8/10/2006 5:14:16 PM
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[ at ]uwe> wrote in message
news:648c656dfe551[ at ]uwe...
[Quoted Text]
> 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.aspx/outlook-prog-addins/200608/1
>


Re: Unknow exception
"Alexandr Kalugin via OfficeKB.com" <u25068[ at ]uwe> 8/11/2006 3:30:13 AM
Dmitry Streblechenko wrote:
[Quoted Text]
>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.aspx/outlook-prog-addins/200608/1

Re: Unknow exception
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 8/11/2006 6:19:01 AM
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[ at ]uwe> wrote in message
news:64970a7e9c048[ at ]uwe...
[Quoted Text]
> 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.aspx/outlook-prog-addins/200608/1
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net