Am 26.10.2010 10:55, schrieb Tobias Giesen: >> A bug may show anytime anywhere, but the built in ref counted string >> types are AFAIK thread safe what concerns the ref count per se. I >> suspect a subtle flaw in the client code is more probable. > > No, it is a compiler bug. The same code works 100% perfectly on > Windows using Delphi, as well as on Mac OS X using FPC 2.2. Starting > with FPC 2.4, it loses memory, which can be fixed by using
So without ref. counting it works. > > UniqueString > > in a number of spots in the code. That is proof enough that the > compiler has a bug. It is possible, but it depends on the usage of the string. > I am trying to isolate it today by finding out > where exactly the UniqueString is necessary. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal