[fpc-devel] threads vs widestringmanager / crash
Sven Barth
pascaldragon at googlemail.com
Mon Dec 19 07:42:08 CET 2022
Am 07.07.2018 um 15:04 schrieb Martin:
> So (guessing) the original issue may be due to the debugger. The
> debugger interrupts the target early on. And that does create a thread
> in the target.
> If such an external thread happens, would fcp execute the code in
> question?
This is likely to be the cause, cause the EXEC_TLS_CALLBACK is executed
by Windows for every thread that is started for an application. And if
the debugger triggers the start of a thread...
>
> Could/Should there be a nil check at the location of the crash?
The RTL assumes that it does not have to deal with threads during the
initialization of the System unit. So even if the symptom of the crash
is fixed in that location it isn't said that something else might crash
or that in the future code might be added that crashes...
Regards,
Sven
More information about the fpc-devel
mailing list