Hello,

I have the following situation: A FPC shared library called from a C main program should catch otherwise unhandled exceptions.

I set up a exception handling routine and assign it to ExceptProc. This works fine so far, the handler is called as expected.

Now the handler routine calls back into a C world routine which does a longjmp (out of my control) that unwinds the stack to before the call into the FPC sharedlib.

The longjmp itself works, but after this has happened once, further exceptions crash the program. I wonder if there is some (FPC) cleanup routine I could or should call before the longjmp that would make the scenario work, or if there is technical evidence that it can't work at all.

Lukas

(luz_i...@synthesis.ch)


_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to