[fpc-pascal]TRY EXCEPT Bug

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Sun Oct 1 10:18:58 CEST 2000

On Sat, 30 Sep 2000, Jonas Maebe wrote:

> On Sat, 30 Sep 2000, Dirk Verwiebe wrote:
> > Hello,
> > 
> > i found out that the try except stuff doesn´t work if the unit crt is
> > compiled in the program where try.. except is used.
> > Is it a bug ???
> I don't know. The problem is that the crt unit now uses the dpmiexcp unit
> (to be able to have ctrl-c as input instead of having it abort the
> program).
> The dpmiexcp installs default signal handlers for most signals, so they
> are then caught by the dpmiexcp unit instead of by the system unit. Since
> the sysutils unit simply converts runtime errors (which also can be
> exceptions caught by the system unit and then converted into a runtime
> error) into exceptions, it won't work anymore.
> We can solve this by not hooking any exceptions anymore by default in the
> dpmiexcp unit, but I don't know if that's a good solution.

I think that this is the only solution. The system unit should handle
such stuff.


More information about the fpc-pascal mailing list