Business In A Box Office Toolbar' Has Fired An Exception

Business-in-a-box office toolbar

Business In A Box Office Toolbar Has Fired An Exception Must

OfficeBusinessBusiness in a box office toolbar has fired an exception using

Add-in Express™ Support Service
That's what is more important than anything else

An Overview of Microsoft Office 2013 Home and Business. Work smarter by downloading Microsoft Office 2013 Home and Business from My Choice Software.Microsoft Office 2013 includes Microsofts best-selling applications such as Word, Excel, PowerPoint, OneNote, and Outlook. The impressive bundle is designed to meet the unique needs of small business owners and power users. The solution has: Data Class libraries (in their own project) Business Class libraries (in their own project) Web Site Unit Test project Web Deployment project When I go to the 'Manage and Execute Tests' menu item, I get 'Exception has been thrown by the target of an invocation.'

Add-in Express forums>Add-in Express for Office and VCL forum

Business-in-a-box Office Toolbar' Has Fired An Exception

Business In A Box Office Toolbar
How to trap error the add-on has fired an exception. OLE error 800A01A

Business In A Box Office Toolbar Has Fired An Exception Error

Posts 1 - 10 of 15
First | Prev. | 12 | Next | Last


Posts: 109
Joined: 2005-03-17
HI!
My outlook addon contain inspector commnand bar (under new email) and advance form region under income email.
Step to reproduce
1. I open 8 or more income email with adxform1.
2. I click new email and show up inspector command bar
3. I close new email form
4. I close income email form 1 by 1.
5. OLE error 800A01A will happend for last closed 2 forms.
Can you give me some hints to trap this error ?
I have no idea about this.
Thanks in advance!
Chan Chi Keung


Posts: 109
Joined: 2005-03-17

My outlook version is 2003 (11.8169.8172) sp3
My delphi version is Delphi 2009 pro with update 3 and Update 4.
My ADX: Version 5.1 Release (build 504)
Chan Chi Keung


Posts: 109
Joined: 2005-03-17
When i implement ADXOnerror and set handled := true, there is no previous occured. Is 'handled ' handle this kind of error ?
Dmitry Kostochko

Add-in Express team

Posts: 2865
Joined: 2004-04-05
Hello Chan Chi Keung,
Yes, you can suppress all exceptions in this way.
Can you give me some hints to trap this error ?

Which events do you handle in your code?
Chan Chi Keung


Posts: 109
Joined: 2005-03-17
Oh!
Thanks!
How to exam exception by using 'E:Exception'?
procedure TAddInModule.adxCOMAddInModuleError(const E: Exception;
var Handled: Boolean);
begin
Handled := true;
end;
At last, if i can't find exception, suppress is ok for me.
Thanks!
Dmitry Kostochko

Add-in Express team

Posts: 2865
Joined: 2004-04-05
Hello Chan Chi Keung,
Please see the code below:
Posted10 Aug, 2009 11:23:47Top


Posts: 109
Joined: 2005-03-17
Great Support!
Many Thanks!
Chan Chi Keung


Posts: 109
Joined: 2005-03-17
When i paste code to delphi 2009, It cannot be compile.
Find declaration of Exception from IDE and it point out
Outlook 2000.pas
Exception = interface(IDispatch)
['{0006304D-0000-0000-C000-000000000046}']
function Get_Application: _Application; safecall;
function Get_Class_: OlObjectClass; safecall;
function Get_Session: _NameSpace; safecall;
function Get_Parent: IDispatch; safecall;
function Get_AppointmentItem: AppointmentItem; safecall;
function Get_Deleted: WordBool; safecall;
function Get_OriginalDate: TDateTime; safecall;
property Application: _Application read Get_Application;
property Class_: OlObjectClass read Get_Class_;
property Session: _NameSpace read Get_Session;
property Parent: IDispatch read Get_Parent;
property AppointmentItem: AppointmentItem read Get_AppointmentItem;
property Deleted: WordBool read Get_Deleted;
property OriginalDate: TDateTime read Get_OriginalDate;
end;
Dmitry Kostochko

Add-in Express team

Posts: 2865
Joined: 2004-04-05
Hello Chan Chi Keung,
The native Delphi Exception class is declared in the SysUtils unit:
Chan Chi Keung


Posts: 109
Joined: 2005-03-17
Thanks for your reply!
I try you mention as above for modification of code.
D2009 warning as below.
'The adxCOMAddINModuleError method referenced by AddInModule.OnError has
an incompatible parameter list. remove the reference?'
Thanks

Posts 1 - 10 of 15
First | Prev. | 12 | Next | Last