<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Verdana; font-size: 12pt; color: #000000'>Thanks Sergei for your answer.<br><br>I Forgot to indicate that I use the last stable version of lazarus (0.9.28.2).<br><br>I will try to modify my code to use FirstChild/NextSibling.<br><br>Regards,<br><br>--<br>Pierre Delore<br><br>http://datalinkwristapps.free.fr<br>http://dpsite.free.fr<br><br>----- "Sergei Gorelkin" <sergei_gorelkin@mail.ru> a écrit :
<br>> Pierre Delore wrote:<br>> > ...<br>> > I try to search in the wiki and I didn't found thing that help me.<br>> > <br>> Since you did not specify your compiler version, I guess it's something pre-2.4.0.<br>> See this link:<br>> http://wiki.freepascal.org/User_Changes_2.4.0#dom_unit:_memory_management_for_node_lists<br>> <br>> Either upgrade to 2.4.0, or add a matching call of Free for each call of ChildNodes.<br>> The best solution, however, is to change the code to use FirstChild/NextSibling properties<br>> instead of ChildNodes, because FirstChild/NextSibling are faster and don't create any intermediate <br>> objects.<br>> <br>> Regards,<br>> Sergei<br>> <br>> --<br>> _______________________________________________<br>> Lazarus mailing list<br>> Lazarus@lists.lazarus.freepascal.org<br>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus<br>> </div></body></html>