Startup error

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

Startup error
Access Violation where launching outlook add-in 
bluewwol




Posts: 26
Joined: 2022-01-21
I have a very simple shell of an Outlook add-in that throws an Access Violation between the adxCOMAddInModuleCreate event and the adxCOMAddInModuleAddInInitialize events. If I move the code from the Create event to the Initialize event the exception is generated before any of my code is executed.
If I run the code without debugging on my development machine (outlook 2019) I dont see an error, however on another machine (Office 365) an generic error dialog is presented reading "error: the add-in has fired and exception. Invalid pointer operation."

Also then after ignoring and continuing to debug I get sporadic Range Check errors; I am presuming these two things are related. Some basic outputs from the errors are below.

Lastly then when tracing through my code my breakpoint in the adxCOMAddInModuleAddInFinalize event is never triggered.

I am struggling to make headway on this and any pointers or suggestions would be most welcome.

The adx components are the latest, Delphi 11, windows 10 and Outlook 2019.


---------------------------
GExperts Debugger Exception Notification
---------------------------
Project wwolAddIn.exe raised exception class EAccessViolation with message 'Access violation at address 0000000001305D1C. Read of address 0000000000000000'.
---------------------------
[&Filter ...] [Ignore &All this Session] [Break] [Additional &Info] [Continue]
---------------------------
ThreadId=13072
ProcessId=5
ThreadName=""
ExceptionMessage="Access violation at address 0000000001305D1C. Read of address 0000000000000000"
ExceptionName="EAccessViolation"
ExceptionDisplayName="$C0000005"
ExceptionAddress=01305D1C
FileName=<not available>
LineNumber=<not available>

---------------------------

---------------------------
GExperts Debugger Exception Notification
---------------------------
Project wwolAddIn.exe raised exception class ERangeError with message 'Range check error at address 00000000019E2239'.
---------------------------
[&Filter ...] [Ignore &All this Session] [Break] [Additional &Info] [Continue]
---------------------------
ThreadId=13072
ProcessId=5
ThreadName=""
ExceptionMessage="Range check error at address 00000000019E2239"
ExceptionName="ERangeError"
ExceptionDisplayName="ERangeError"
ExceptionAddress=7FFF6F354F69
FileName=<not available>
LineNumber=<not available>
ExceptionObject=198B9384A30
Classes=[ERangeError,EIntError,EExternal,Exception,TObject]

---------------------------
Posted 21 Jan, 2022 11:31:54 Top
bluewwol




Posts: 26
Joined: 2022-01-21
In working back I found I had installed Addin Express Outlook Toys for VCL. I uninstalled this and the access violation seems to now be cured. However the range check error persists.

In an effort to track this down further I created a new project using the wizard, added a TadxRibbonTab to the addin.

This project also generates the range check error. It does this 4 times after launching outlook, then does it every time the mouse enters the email preview pane.

again any suggestions would be welcome.
Posted 21 Jan, 2022 14:02:59 Top
bluewwol




Posts: 26
Joined: 2022-01-21
to confirm the version of Add-In Express adxvcl-v1000-b1700-std
Posted 21 Jan, 2022 14:34:05 Top
bluewwol




Posts: 26
Joined: 2022-01-21
After encountering a "Disconnected Session" error from the debugger a google search reveals that the Delphi and project paths should be added as exceptions to the anti-virus. After doing this I am no longer getting the range check errors. for the record I am using bit defender as my AV

So long and short of this it seems to be a windows environment issue rather than the project code itself. Question remaining then is has anyone ever seen this type of development environment issue spill over into production?
Posted 21 Jan, 2022 16:00:51 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello,

We've never received such reports. I suppose signing the add-in's DLL with a digital certificate may help, too.

Regards from Poland (CET),

Andrei Smolin
Add-in Express Team Leader
Posted 24 Jan, 2022 03:43:16 Top