Sven Barth via fpc-pascal wrote:
You already wrote that you might have found a different cause, but
nevertheless to clarify: the RTL initialization for the thread (which
includes AllocateThreadVars) should already be done transparently by the
RTL through hooks provided by pthread.
Yes, I found the hook in cthreads.pp. Thanks for the reply.
In a small test program, exception handling works, in the main thread, with BeginThread as well as
with pthread_create. In the big program, it doesn't. So the mystery still to solve, is why ....
Matbe this is related to <https://gitlab.com/freepascal.org/fpc/source/-/issues/12974> as the code
resides in a dynamic library (written in Pascal and called into from a main program, also written
in Pascal)
Regards,
Adriaan van Os
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal