Buffer overrun detection works, but provides no stacktrace

delphi package - automated exception handling

Buffer overrun detection works, but provides no stacktrace

Postby santiago » Thu Feb 02, 2017 11:15 pm

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
santiago
 
Posts: 33
Joined: Thu May 05, 2016 6:01 pm

Re: Buffer overrun detection works, but provides no stacktra

Postby madshi » Fri Feb 03, 2017 7:59 am

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')")?
madshi
Site Admin
 
Posts: 9339
Joined: Sun Mar 21, 2004 5:25 pm

Re: Buffer overrun detection works, but provides no stacktra

Postby santiago » Fri Feb 03, 2017 2:55 pm

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.
santiago
 
Posts: 33
Joined: Thu May 05, 2016 6:01 pm

Re: Buffer overrun detection works, but provides no stacktra

Postby madshi » Fri Feb 03, 2017 2:58 pm

So did it help finding a real buffer overrun in your main project?
madshi
Site Admin
 
Posts: 9339
Joined: Sun Mar 21, 2004 5:25 pm

Re: Buffer overrun detection works, but provides no stacktra

Postby santiago » Fri Feb 03, 2017 8:03 pm

YES!!!!
Love madExcept - Fantastic tool!!!!!
:-)
santiago
 
Posts: 33
Joined: Thu May 05, 2016 6:01 pm

Re: Buffer overrun detection works, but provides no stacktra

Postby madshi » Fri Feb 03, 2017 8:10 pm

Glad to hear that! 8)
madshi
Site Admin
 
Posts: 9339
Joined: Sun Mar 21, 2004 5:25 pm


Return to madExcept

Who is online

Users browsing this forum: No registered users and 2 guests