SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
I’m in process optimizing my app.
I’m using Objective-c.
I’d found some memory leaking issues and successfully fixed some of that.
A first issue was about ‘renderableSeries’ under ‘SCIChartSurfaceView’.
If you set class of UIView as ‘SCIChartSurfaceView’ in interface builder and make outlet without setting ‘strong’ or ‘weak’ in .m file,
It never get released automatically and will stay retained on memory.
For me, it caused about 90MB of memory leaking.
But I could solve this issue manually by putting -(void)clear; method of renderableSeries in viewWillDisappear method.
Another issue is about ‘SCIDateTimeDeltaCalculator’ and ‘SCINumericDeltaCalculator’.
It causes about 50MB of memory leaking.
But problem is, I couldn’t find neither where it’s been called nor how I release this manually.
I will be waiting for your answer.
(lldb) po SciChartVersionNumber
(lldb) po SciChartVersionString
I wanted to know what version I’m using.. but i couldn’t know… what version am i using..?
What you’re seeing its not actually a memory leak.
The SCIDeltaCalculator is a static object (as the same delta calculator can be used by multiple axises), so thats why it doesn’t get destroyed with a surface, but it takes like 16 bytes of memory, so shouldn’t leat to significant increase of memory usage, by the app.
Please login first to submit.