A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Unknow exception



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 10th 06, 05:55 AM posted to microsoft.public.outlook.program_addins
Alexandr Kalugin via OfficeKB.com
external usenet poster
 
Posts: 4
Default 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

Ads
  #2  
Old August 10th 06, 06:42 AM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default 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



  #3  
Old August 10th 06, 08:11 AM posted to microsoft.public.outlook.program_addins
Alexandr Kalugin via OfficeKB.com
external usenet poster
 
Posts: 4
Default 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

  #4  
Old August 10th 06, 06:14 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default 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



  #5  
Old August 11th 06, 04:30 AM posted to microsoft.public.outlook.program_addins
Alexandr Kalugin via OfficeKB.com
external usenet poster
 
Posts: 4
Default 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

  #6  
Old August 11th 06, 07:19 AM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default 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



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is 0x0eedfade exception? Dmitry Streblechenko Add-ins for Outlook 2 June 20th 06 07:59 PM
Exception from HRESULT Laks Add-ins for Outlook 1 May 11th 06 09:24 AM
Exception at item display Yury Kudryashov Add-ins for Outlook 0 March 13th 06 06:12 PM
The folder is full exception jim Add-ins for Outlook 1 January 16th 06 04:27 PM
Got exception while QueryInteface Vinayakc Add-ins for Outlook 0 January 13th 06 08:44 AM


All times are GMT +1. The time now is 03:44 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-2025 Outlook Banter.
The comments are property of their posters.