Buffer overrun detection works, but provides no stacktrace

delphi package - automated exception handling
Post Reply
santiago
Posts: 73
Joined: Thu May 05, 2016 6:01 pm

Buffer overrun detection works, but provides no stacktrace

Post by santiago »

Hi madschi,

I started looking into the 'Instantly crash on buffer overrun' (ICOBO) feature.

To test this I just copied the examples for buffer overrun frrom the madExcept help.
I then executed this code.

If the ICOBO feature is not activated nothing happens when this code is executed.
When I enable the ICOBO feature in the MES file, an unhandled exception is caught but it looks like this:

Image

No madExcept box is displayed. No StackTrace.
But madExcept must be active, because this exception only ocurrs when ICOBO is activated.
I then played around with our App and got a similar exception. This is great it means we found a tricky problem, but without a stack trace I would not know where to start looking.

Is this how it is supposed to work?

Thank you!

sb
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Buffer overrun detection works, but provides no stacktra

Post by madshi »

It seems that madExcept exception catching is not active/working. Does it work if you raise a test exception (e.g. "raise Exception.Create('test')")?
santiago
Posts: 73
Joined: Thu May 05, 2016 6:01 pm

Re: Buffer overrun detection works, but provides no stacktra

Post by santiago »

Hello madschi,

I figured out the problem. I had mistakenly activated the 'Crash On Buffer Overrun' on the wrong MES file.
I activated it now on the correct MES file.

Sorry for the trouble.
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Buffer overrun detection works, but provides no stacktra

Post by madshi »

So did it help finding a real buffer overrun in your main project?
santiago
Posts: 73
Joined: Thu May 05, 2016 6:01 pm

Re: Buffer overrun detection works, but provides no stacktra

Post by santiago »

YES!!!!
Love madExcept - Fantastic tool!!!!!
:-)
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Buffer overrun detection works, but provides no stacktra

Post by madshi »

Glad to hear that! 8)
Post Reply