[Lazarus] strcat problem

Sven Barth pascaldragon at googlemail.com
Fri Jun 24 17:25:18 CEST 2016

Am 24.06.2016 09:44 schrieb "Koenraad Lelong" <lazarus2 at de-brouwerij.be>:
> Updated my code :
>  cTekst:=StrAlloc(600);
>  cTekst:=#13'Now is the winter of our discontent'#13;
>  cTekst:=StrCat(cTekst,'Made glorious summer by this sun of York;'#13);

You need to use StrCat for the assignment after the StrAlloc as well,
otherwise you'd just get rid of the pointer to your allocated memory
returning to your original situation.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160624/9b0587b5/attachment-0002.html>

More information about the Lazarus mailing list