Re: [fpc-devel] threads vs widestringmanager / crash

2022-12-21 Thread Martin Frb via fpc-devel
On 21/12/2022 11:37, Marc Weustink via fpc-devel wrote: On 20-12-2022 21:12, Sven Barth via fpc-devel wrote: So the only logical solution is to stop the offending thread from executing or not to have it call InitThread() while the initialization section of the System unit is still running. Th

Re: [fpc-devel] threads vs widestringmanager / crash

2022-12-21 Thread Marc Weustink via fpc-devel
On 20-12-2022 21:12, Sven Barth via fpc-devel wrote: So the only logical solution is to stop the offending thread from executing or not to have it call InitThread() while the initialization section of the System unit is still running. The former might have unintended consequences (e.g. not b

Re: [fpc-devel] threads vs widestringmanager / crash

2022-12-21 Thread Ondrej Pokorny via fpc-devel
On 20.12.2022 21:12, Sven Barth via fpc-devel wrote: Please stop focusing on the WideString manager. That is simply a symptom. The real cause is that a thread is created where there shouldn't be one and under normal circumstance there indeed will be none: - if the initialization is executed as p