Bihar Anwar schrieb:
> I found that the last element of a dynamic array starts with
> reference count = 2 in FPC, but in Delphi is 1. Is this an FPC bug,
> or FPC implements reference counting differ from Delphi?

FPC and Delphi handle code generation for ref. counted types slightly
different, so there might be cases where the ref. counter differs. As
long as there is no memory leak when the vars are properly used, we
don't consider it as a bug.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to