[fpc-pascal]executing different gtk applications from FPC

Marco van de Voort marcov at stack.nl
Thu Jul 19 11:29:16 CEST 2001

> Note that imo its not recommended to create sophisticated multithreading
> programs since the basic RTL (e.g. system unit) isn't threadsafe yet
> (afaik). Basically at least all things which implicitly or explicitly
> allocate memory (classes, ansistrings, ...) might cause _really_ nasty and
> weird things.
> Even exchanging the memory management functions by OS native ones might not
> be sufficient (well, I've some threading code here which behaves weird when
> compiled with FPC but is fine with Delphi although the memory manager is
> exchanged; but this might be a program error and since FPC isn't supposed to
> be threadsafe you can't call it a bug imo)

Threadsafeness of FPC is being worked on by Florian in the development branch.

I have the same problem with the Delphi network suite ICS. It compiles, but
doesn't work properly, probably due to threading issues.

Did you perform those tests with a recent 1.1 snapshot?

More information about the fpc-pascal mailing list