Jump to content
Berocoder

EurekaLog problem

Recommended Posts

Can you confirm the assertion code is there ? (i mean the compiler did add the code )

 

I ran of something similar but it was the IDE fault, sometimes disabling the assertion in project options, and then re-enabling them is not enough for some reason the compiler will not add them until calling clean on the project or closing the project and re-open it, this happen on XE8.

 

In all cases put a break point and see if the assert code in assembly is there, also it could be a forgotten directive somewhere.

Share this post


Link to post
1 minute ago, Kas Ob. said:

Can you confirm the assertion code is there ? (i mean the compiler did add the code )

 

I ran of something similar but it was the IDE fault, sometimes disabling the assertion in project options, and then re-enabling them is not enough for some reason the compiler will not add them until calling clean on the project or closing the project and re-open it, this happen on XE8.

 

In all cases put a break point and see if the assert code in assembly is there, also it could be a forgotten directive somewhere.

The actual Assert is triggered and catched by Delphi IDE.
It is just that it is not catched by EurekaLog.
So there is no EL-logfile and my event OnExceptionNotify is not called

Edited by Berocoder

Share this post


Link to post

EL might be conditionally redirecting the Assert handler.

Place a breakpoint in System._Assert to verify that the Assert code is being called. Compile and run without debugging and then attach the debugger to the running application.

Share this post


Link to post

Problem solved. It was my mistake.

ApplicationEvents.OnException := nil;

I believed that this disabled old JCL that was used before. But it seems to disable whole exception mechanism for software exceptions.
Hardware exceptions still works.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×