[fpc-devel] TStringList.commatext

Michael Van Canneyt michael at freepascal.org
Fri Jun 10 12:10:30 CEST 2005



On Wed, 1 Jun 2005, Martin Pekar wrote:

> Hi,
>
> I found some errors in TSringList.CommaText and tryed to fix it. For variable 
> sl:TStringList, command
>
> sl.CommaText:=sl.CommaText;
>
> sometimes changes strings in the list
> - when list contained more then one string and last string was '', previous 
> command removed last string from the list
> - string in a list was not qouted in commatext, if it contained #0 before 
> first '"' or ',' or ' '

I am not comfortable with your #0 patch; It's a potential memory leak,
so I'm inclined to say that #0 characters are not allowed in a stringlist.


Please remove this change and send the patch to me in private.

Michael.




More information about the fpc-devel mailing list