[Lazarus] strcat problem
lazarus2 at de-brouwerij.be
Thu Jun 23 16:06:45 CEST 2016
I used strcat to make a long PChar.
On my OpenSuse-box this works fine. On the RaspberryPi, is gives a
runtime error 216.
Any suggestions what could be the problem ?
This part of the code :
cTekst:=#13'Now is the winter of our discontent'#13;
cTekst:=StrCat(cTekst,'Made glorious summer by this sun of York;'#13);
<-- here is the RT-error 216.
I have several more lines
Any work-around ? I actually need a long nul-teminated constant string
of about 550 characters. I could write the whole string on one line, but
I would like to prevent that. I prefer it like the C-code :
Now is the winter of our discontent\n\
Made glorious summer by this sun of York;\n\
And all the clouds that lour'd upon our house\n\
FWIW, I'm porting pigpio. The test-application x_pigpiod_if2 works
mostly fine remotely (from my OpenSuse-box), but now I get this problem
when testing the local version, i.e. on the pi itself.
More information about the Lazarus