<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"></head><body dir="auto"><div>If I'm not using this piece of code, I have no error. I'm pretty sure that this piece of code generates the error. <br><br><div>Mit freundlichen Gruessen / with best regards,</div><div><br></div></div><div><br>Anfang der weitergeleiteten E‑Mail:<br><br></div><blockquote type="cite"><div><b>Von:</b> "waldo kitty" <<a href="mailto:wkitty42@windstream.net">wkitty42@windstream.net</a>><br><b>An:</b> <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a><br><b>Betreff:</b> <b>Re: Fwd: [fpc-devel] problem with TStringLists and delete in glibc</b><br><br></div></blockquote><blockquote type="cite"><div><span>On 3/16/2013 11:36, Stefan Fischer wrote:</span><br><blockquote type="cite"><span>Hi,</span><br></blockquote><blockquote type="cite"><span>I have 220 strings in the list. Also the code works in a small sample program.</span><br></blockquote><blockquote type="cite"><span>I put the code in a unit an used the function in a bigger project with multiple</span><br></blockquote><blockquote type="cite"><span>units.</span><br></blockquote><blockquote type="cite"><span>In that environment, the code fails in glibc. The content of the string list was</span><br></blockquote><blockquote type="cite"><span>the same in both programs. In the small sample it works, in my bigger project it</span><br></blockquote><blockquote type="cite"><span>fails.</span><br></blockquote><blockquote type="cite"><span>Maybe there is a pointer alignment problem. But for now I really don't know how</span><br></blockquote><blockquote type="cite"><span>to trace or debug it.</span><br></blockquote><span></span><br><span>reading over the thread and how you moved the functions to a unit for use in a </span><br><span>larger program, i'm wondering if there is not an error earlier in the program </span><br><span>that is not caught which then shows up at this point...</span><br><span></span><br><span>we used to see something like this all the time back in the TP days when someone </span><br><span>would open a file and not check the result codes... then later on they'd get an </span><br><span>error on a string or some other function... the problems were always solved by </span><br><span>properly checking for errors at those stages where needed...</span><br><span></span><br><span>just my thoughts on it... especially since the smaller program still works </span><br><span>properly and the same data is used in both programs...</span><br><span></span><br><span>_______________________________________________</span><br><span>fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a></span><br><span><a href="http://lists.freepascal.org/mailman/listinfo/fpc-devel">http://lists.freepascal.org/mailman/listinfo/fpc-devel</a></span><br></div></blockquote></body></html>