On 04 Jun 2010, at 14:03, José Mejuto wrote:
Hello FPC-Pascal, Friday, June 4, 2010, 10:37:42 AM, you wrote: JM> Maybe you are executing Pascal code in threads that have not been JM> started via the FPC rtl? (i.e., not via beginthread nor via JM> tthread.create) That is not supported on Unix platforms. Not, well, not at least on intention but maybe is the XPCOM which is calling pascal code from a different thread :-? XPCOM tells me across the documentation to call most of its functions from the main thread, but maybe the callback is happening from a different one :-?
It doesn't matter that it's called from a different thread, as long as this different thread is also created via the FPC RTL.
If that's the case is any kind of workaround ?
No, it cannot be worked around (other than adding functions to the FPC rtl that you can call *once* from externally created threads to initialise and finalise the FPC thread support for that specific thread, but that has not yet been done).
Jonas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal