Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
5020
IGDataPoint Memory Leak
posted

Hi,

I've got a long-running, rolling chart that, every second:

 1) adds a point to the end

 2) removes a point from the start (index 0)

Unfortunately, Instruments is showing a slow memory leak of IGDataPoint (IGCategoryDatePoint to be exact).

I am not reusing points. I *could* reuse points, but I would expect that old points would be released internally.

Since I don't have the chart's implementation details, can you offer some advice on how to work around this?

Thanks,

Caylan

Parents
No Data
Reply
  • 5020
    posted

    I implemented a basic cache of the points and that solves my immediate problem. However, it would be nice to know if you can confirm the existence of unnecessary point retention in IGChart.

Children