<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 19.04.2013 09:38, schrieb Xiangrong
Fang:<br>
</div>
<blockquote
cite="mid:CAP93jB3pv-qGeKerQvgUO=9SrFu0QTPLOfkhovD9CnouNPbVeQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">2013/4/19 Michael Van Canneyt <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb">
<div class="h5"><br>
1. I don't know whether I have to MANUALLY free memory
for these strings to<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
prevent leak?<br>
</blockquote>
</blockquote>
<br>
</div>
</div>
Yes, if you work like this, you must do all that. You must
free all pointers in the list, and the strings they point
to.<br>
<br>
But why not use TStringList ? It does all this for you.</blockquote>
<div><br>
</div>
<div>Because I want to then concat the strings into a big
string using CRLF, but the TStringList.Text method concat
them using LF only. I think that might be platform
dependant, which is not what I want.<br>
</div>
</div>
</div>
</div>
</blockquote>
It seems that TextLineBreakStyle is what you want:
<a class="moz-txt-link-freetext" href="http://www.freepascal.org/docs-html/rtl/classes/tstrings.textlinebreakstyle.html">http://www.freepascal.org/docs-html/rtl/classes/tstrings.textlinebreakstyle.html</a><br>
<br>
Regards,<br>
Sven<br>
</body>
</html>