2009/10/29 Henry Vermaak <henry.verm...@gmail.com>: > > This is probably dependant on compiler modes?
I'm using: $mode objfpc > You may have to do it like this: > > StrDispose(Text); > Text := StrAlloc(length(s) + 1); > StrPCopy(Text, s); Ah, now it works plus no memory leaks. Thanks! :-) Wow, something as simple as concatenating string and end up being so complex. Poor C programmers that have to constantly work with pointers and null terminated strings. ;-) -- Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal