[lazarus] String Addition FCL Problem

Peter Vreman pfv at cooldown.demon.nl
Thu May 27 14:33:10 EDT 1999



> I was trying to generate a test app that was doing it last night. I then
> removed the H switch a bang the problem went away. I also noticed that
> TIniFile uses the 
> H Switch also. Any attemp to write a string using TIni will throw the error.
> 
> obj := TIniFile.Create('/lazaruside/test.ini');
> obj.WriteString('Files','Units',mystr);
> 
> 
> At the end of tini file is a statement to this effect.
> 
> TheStringList.Add(brackets[0] + section + brackets[1]);
> 
> 
> This unit does use the h switch the next thing for me to do is to remove it
> and see if it will work correctly.
> 
> 
> BTW this one does seem to be very stealth it only happens when things are
> just right. It seems like it is a combination of things that causes the
> error.
I'll take a look at it. But removing the $H+ switch will use shortstrings
instead of ansistrings, i don't know if you'll like that ;)

Peter







More information about the Lazarus mailing list