[fpc-pascal] EAccessViolation on wrong exception re-raise: intended behavior?

Michael Van Canneyt michael at freepascal.org
Tue Apr 7 10:59:13 CEST 2015

On Sun, 5 Apr 2015, leledumbo wrote:

>> I tested in Delphi XE, it also crashes. So, yes it is intended behaviour.
>> It is not desirable, of course. But there is no way the compiler can
>> decide
>> whether the 'raise e' statement is correct.
> That's bad to know :|
> What if you ask Embarcadero first? Probably they missed the point. I don't
> have Delphi so I can't ask them.

Like I said, there is no way of knowing what is correct or not.

I don't really see what can be done except maybe checking if an object is already in the exception stack before adding 
it again (which I assume is what is happening)


More information about the fpc-pascal mailing list