[fpc-pascal] AllocateThreadVars ?
Adriaan van Os
adriaan at adriaan.biz
Thu Oct 10 16:36:12 CEST 2024
> 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
More information about the fpc-pascal
mailing list