Skip to content
Back to formatted view

Raw Message

Message-ID: <50D4B601.9030101@uni-konstanz.de>
Date: 2012-12-21T19:18:25Z
From: Peter Meißner
Subject: Memory filling up while looping
In-Reply-To: <1356115680.9584.14.camel@milan>

THANKS a lot!

This actually solved the problem even without calling free() explicitly:

xmlTreeParse(..., useInternalNodes=TRUE)

Best, Peter


Am 21.12.2012 19:48, schrieb Milan Bouchet-Valat:
> Le vendredi 21 d?cembre 2012 ? 18:41 +0100, Peter Mei?ner a ?crit :
>> Yeah, thanks,
>> I know: !DO NOT USE RBIND! !
>>
>> But it does not help, although using a predefined list to store results
>> as suggested there, it does not help.
>>
>> The problems seems to stem from the XML-package and not from the way I
>> store the data until saved.
> So you may want to use xmlParse() or the equivalent
> xmlTreeParse(useInternalNodes=TRUE) instead of plain xmlTreeParse().
> This will avoid creating too many R objects that will need to be freed.
> But do not forget to call free() on the resulting object at the end of
> the loop.
>
> See this page for details:
> http://www.omegahat.org/RSXML/MemoryManagement.html
>
>
> Regards
>