Thanks Mattias and Anton.Ie: When you assign a constant string to a PChar then assigns the address of the string constant.
I believed that be created a PChar in the heap.
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal