The ObjectRegistry is continually growing until I clear it
« Back to message list
Hi!
I'm dynamically updating charts. I noticed that if i do not clear the object registry there will be a memory leak. Also the size of the ObjectRegistry is constantly rising until i call ObjectRegistry.Clear(). Is this the correct behaviour? Also wouldn't it be better to be able to just refresh the data instead of creating a new object every time ?
Posted by RGraph support on 5th June 2013I'm dynamically updating charts. I noticed that if i do not clear the object registry there will be a memory leak. Also the size of the ObjectRegistry is constantly rising until i call ObjectRegistry.Clear(). Is this the correct behaviour? Also wouldn't it be better to be able to just refresh the data instead of creating a new object every time ?
Hi there,
Yes it's correct behaviour. If you want to clear the ObjectRegistry then you have to call the Clear method. And there's a list of data properties on the API page that you can update instead of creating new objects.
www.rgraph.net/canvas/docs/api.html
www.rgraph.net/canvas/docs/api.html#objectregistry
Richard
RGraph Support
Yes it's correct behaviour. If you want to clear the ObjectRegistry then you have to call the Clear method. And there's a list of data properties on the API page that you can update instead of creating new objects.
www.rgraph.net/canvas/docs/api.html
www.rgraph.net/canvas/docs/api.html#objectregistry
Richard
RGraph Support
Add a reply
« Back to message list