Several months ago I first released an app with some graphs coming from chart
director and it worked great. Last night I rebuilt that app with the latest
version of the plugins in order to add some debug logging for an unrelated
issue and it died overnight using 3+ gig of real memory. I added some code to
count and sort the objects that xojo was aware of and I find that I’m not
releasing any of my CDXYChartMBS classes or the axis classes or their
associated data. It definitely was doing so with whatever version of Chart
Director I built the previous version with.
All the chart director objects are stored in local variables that go
appropriately out of scope at the end of the drawing method leaving me with
just a picture object holding the graph. The previous version had no trouble
with this.
Digging through the classes I see a definition for the destructor of the base
class so I tried calling that manually at the end of my methods and it does
seem to free the memory associated with whatever internal structures are
created by it and my data. However the CDXYChartMBS classes are remaining and a
new one is created each time I redraw my graph.
Is there a new appropriate way of freeing these objects I should be calling?
The problem is evident in the latest PR release of 152 and also in 151.
Thanks,
James
James Sentman http://sentman.com
http://MacHomeAutomation.com
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info