Alexander Grau wrote on Mon, 12 Jul 2010:
Am 12.07.2010 um 18:17 schrieb Jonas Maebe:
On 12 Jul 2010, at 13:24, Michael Van Canneyt wrote:
Basically, any heap memory access and standard pascal I/O are forbidden in
threads started outside FPC, because the necessary thread
structures are not
initialized correctly.
I think that I've finally found a way to resolve this properly in r15557.
This doesn't seem to work fully yet- let me try to create a simple
test for reproducing my crash ;-) ...
I forgot to mention: before this works, you have to create at least
one thread using the FPC RTL in order to initialise the threading
subsystem. It can be terminated/freed immediately, see the test
program that was committed together with the fix for an example.
Jonas
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal