Thanks Sergei for your answer. 

I Forgot to indicate that I use the last stable version of lazarus (0.9.28.2). 

I will try to modify my code to use FirstChild/NextSibling. 

Regards, 

-- 
Pierre Delore 

http://datalinkwristapps.free.fr 
http://dpsite.free.fr 

----- "Sergei Gorelkin" <[email protected]> a écrit : 
> Pierre Delore wrote: 
> > ... 
> > I try to search in the wiki and I didn't found thing that help me. 
> > 
> Since you did not specify your compiler version, I guess it's something 
> pre-2.4.0. 
> See this link: 
> http://wiki.freepascal.org/User_Changes_2.4.0#dom_unit:_memory_management_for_node_lists
>  
> 
> Either upgrade to 2.4.0, or add a matching call of Free for each call of 
> ChildNodes. 
> The best solution, however, is to change the code to use 
> FirstChild/NextSibling properties 
> instead of ChildNodes, because FirstChild/NextSibling are faster and don't 
> create any intermediate 
> objects. 
> 
> Regards, 
> Sergei 
> 
> -- 
> _______________________________________________ 
> Lazarus mailing list 
> [email protected] 
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 
>
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to