How to use EurekaLog with AddInExpress?

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

How to use EurekaLog with AddInExpress?
instructions needed to setup EurekaLog on an AddinExpress VCL project 
Francesco Faleschini




Posts: 26
Joined: 2014-05-15
I would like to enable EurekaLog on my Addin project to study some Access Violations.

From time to time a customer has an Access Violation displayed like this

Error

[Content]
MyAddin error: the add-in has fired an exception.
Access violation at address 0000000012A7A229 in module 'MYADDI~1.DLL'. Read of address FFFFFFFFFFFFFFFF

[OK]

I would like to show the execeptions with the useful EurekaLog dialog.

i read in the forum that some users use EUrekaLog with the Addin but i do not know how to enable it.

I tried to activate it and set the project type to DLL but when the exception arrives I see the standard WIndows error message and not the EUrekaLog one.

THank you.
Posted 25 May, 2017 03:37:50 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Francesco,

Is it possible that you raise the test exception in an event handler of an Add-in Express component (such as TadxRibbonButton)? If so you need to handle the OnError event of the add-in module.

To raise an exception outside of the module's error handling, show a pane, put a button on it and raise an exception in the Click event of the button.


Andrei Smolin
Add-in Express Team Leader
Posted 25 May, 2017 04:51:47 Top
Francesco Faleschini




Posts: 26
Joined: 2014-05-15
Hello Andrei,

thanks for answering.

In my case the exception is not raised by me, it happens and i would like to understand what happened. THis is why I'd like to study it with EUrekalog, how to setup EurekaLog with addinexpress?

Even if i can may be solve a specific exception by trial, i would like to be able to use eurekalog as soon as i need it, coudl you please tell me how to do it?

Thanks.
Posted 25 May, 2017 11:09:14 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Francesco,

We've created an example. Please see http://temp.add-in-express.com/support/adxEurekaLogSample.zip.


Andrei Smolin
Add-in Express Team Leader
Posted 26 May, 2017 04:03:40 Top
Francesco Faleschini




Posts: 26
Joined: 2014-05-15
Thanks for the sample, anyway i am not able to use it.

As i build it i have

[dcc32 Fatal Error] adxEurekaLogSample_TLB.pas(32): F2613 Unit 'Graphics' not found.

could you please suggest how to do?

Anyway my exception occurs on a TadxCommandBarButton Click
Posted 26 May, 2017 04:26:06 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
That project is a Deplhi 7 project. You need to use VCL.Graphics instead of Graphics.


Andrei Smolin
Add-in Express Team Leader
Posted 26 May, 2017 05:16:46 Top
Francesco Faleschini




Posts: 26
Joined: 2014-05-15
Thank you. Sorry but Delphi 7 times are blurred memories for me.

i was able to build you project, i ste Win64 as target platform, installed it with

regsvr32 adxEurekaLogSample.dll

from elevated command prom and i get a success message.

but i do not see it in outlook. Neither in the addins list.

I also tried to put the dll in D:\ as suggested in other forum threads but with no success.

What else can i do?

Thanks
Posted 26 May, 2017 09:07:20 Top
Francesco Faleschini




Posts: 26
Joined: 2014-05-15
Since i am stuck i created https://www.add-in-express.com/forum/read.php?FID=1&TID=14551&MID=74571#message74571 to get help on this specific Access Violation i have, even if I would like to be able to get all the Access Violation that occurs using EurekaLog, so please do not ignore this thread.

Thanks.
Posted 26 May, 2017 10:05:20 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Francesco,

I've asked our guys to convert that project to a contemporary Delphi version. Download http://temp.add-in-express.com/support/adxEurekaLogSample2.zip; D10.1 Berlin. We found no problems in the original project.


Andrei Smolin
Add-in Express Team Leader
Posted 29 May, 2017 09:01:33 Top