Then, I parse among children tags periodically to get some information inside XML with ElemFmtCmd.childElements()
When I do this, I see RAM memory usage always increasing (see included pictures).
The memory usage increase further, when I call the childElements() function more often, which make me think that there is a problem related to this function (or maybe I missing something using it).
I included a simplified example of my application (with a XML file) which involve this problem.
Thank in advance if you can help me to solve this (even with a workaround :)
if you call getRootElement and childElements objects are created internally. These objects are deleted if the script exits. If you want to delete these objects manually you can use deleteLater (this is a hidden function).
Example:
Hello Stefan,
Thank you for your awesome software, it helps me a lot.
I think I’ve found some kind of memory leak, if I don't made a mistake :
On a worker script, I created an XML reader object, to read a XML file.
To do so, I use :
Then, I parse among children tags periodically to get some information inside XML with
ElemFmtCmd.childElements()
When I do this, I see RAM memory usage always increasing (see included pictures).
The memory usage increase further, when I call the childElements() function more often, which make me think that there is a problem related to this function (or maybe I missing something using it).
I included a simplified example of my application (with a XML file) which involve this problem.
Thank in advance if you can help me to solve this (even with a workaround :)
Hi,
if you call getRootElement and childElements objects are created internally. These objects are deleted if the script exits. If you want to delete these objects manually you can use deleteLater (this is a hidden function).
Example:
Last edit: Stefan Zieker 2022-05-25