madExcept does not catch anything on delphi XE5

delphi package - automated exception handling
Post Reply
kokorini
Posts: 3
Joined: Wed Sep 23, 2015 7:33 pm

madExcept does not catch anything on delphi XE5

Post by kokorini »

I installed, lasted version I think: 4.0.13

On Project->madExcept it is active

but it just do nothing, like if it wasn´t there, with my own big complex project or even if create a simple one just to raise an exception with:
raise Exception.Create('test')

win 32 applications

any ideas? thanks!
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: madExcept does not catch anything on delphi XE5

Post by madshi »

Are you running your program inside or outside of the IDE? Try running it outside. Does it still not work?
kokorini
Posts: 3
Joined: Wed Sep 23, 2015 7:33 pm

Re: madExcept does not catch anything on delphi XE5

Post by kokorini »

Yes! thanks, outside the IDE it works

didn´t think that
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: madExcept does not catch anything on delphi XE5

Post by madshi »

If you run the program inside of the IDE, the Delphi debugger is active, and it catches exceptions before madExcept does. The reason for that is that the IDE debugger already shows the exceptions in the moment when they are raised. madExcept instead waits to check if the exception is handled by some try..except block later, because madExcept doesn't care about exceptions that are handled by a try..except block. madExcept only shows you unhandled exceptions. If you press "continue" in the IDE crash window, madExcept should show up inside of the IDE, too (unless the exception is handled by a try..except block).
kokorini
Posts: 3
Joined: Wed Sep 23, 2015 7:33 pm

Re: madExcept does not catch anything on delphi XE5

Post by kokorini »

Yes, and it has complete sense now you say it.

Thanks, the software is great.
Post Reply