Difference between revisions of "Talk:Networking"
From Lazarus wiki
Jump to navigationJump to search (ChildNodes stuff will cause mem leaks) |
Lepidosteus (talk | contribs) (Location of this xml tutorial) |
||
Line 3: | Line 3: | ||
function GetChildNodes: TDOMNodeList; | function GetChildNodes: TDOMNodeList; | ||
in the dom.pp sources. The memory leak (and the fact that calling .Release when needed helps) can be easily seen by heaptrc. [[User:Michalis|Michalis]] 00:37, 28 November 2006 (CET) | in the dom.pp sources. The memory leak (and the fact that calling .Release when needed helps) can be easily seen by heaptrc. [[User:Michalis|Michalis]] 00:37, 28 November 2006 (CET) | ||
+ | |||
+ | == Location of this xml tutorial == | ||
+ | |||
+ | I don't think an xml tutorial should be located at /Networking, what about moving it to /Xml ? Lepidosteus |
Revision as of 11:02, 11 February 2007
Just a quick glance at the article: it accesses ChildNodes a lot, but it doesn't free it anywhere. The code will cause memory leaks. If someone has time, this should be fixed --- accessed ChildNodes should be saved into a variable, and at the end freed by ChildNodes.Release. This is documented by short comment
// Free NodeList with TDOMNodeList.Release! function GetChildNodes: TDOMNodeList;
in the dom.pp sources. The memory leak (and the fact that calling .Release when needed helps) can be easily seen by heaptrc. Michalis 00:37, 28 November 2006 (CET)
Location of this xml tutorial
I don't think an xml tutorial should be located at /Networking, what about moving it to /Xml ? Lepidosteus