When I call ChartReDraw() on a chart, it increase my memory usage 5.5MB. If I have 10 charts, then it is 55MB.
ChartReDraw() is also called by CCanvas::Update(). So if you have a CCanvas Object, then you just waste 5.5MB on nothing.
WindowReDraw() does not increase memory usage.
Is it memory leak?
Do you understand my question?
4> If you think ChartReDraw() increase memory usage 5.5MB is assumption then you are free to create a button and test like I did
Now resolve all the things, my indicator only use 230MB on 30 charts. Is it worth the debugging???
I understood you perfectly.. You saw some trivial memory allocation in response to anything. You are in the noise. Forget it.
Every call could allocate memory.. You saw it once. WindowRedraw could also, you just didn't see it. Forget it.
Yes it is an assumption. ChartReDraw could allocate memory. WindowRedraw could allocate memory. CCanvas::Update could allocate memory. A button press could allocate memory. A new tick could allocate memory. Forget it.
It is not worth debugging. Forget it.
Hahaa, You don't even do the least debugging and said it is my assumption. You are greatest coder i have ever seen!!!!!
Why button press allocate memory incase ChartReDraw but not in case WindowReDraw? you do the test and figure out?
A new tick allocate memory is useful. ChartReDraw allocate memory is useless.
Yeah, it is not, because it is not your indicator.
I soon forget you when end this reply!
Thank you for your interested and useless comment!!
Please calm down.
If you think it's a bug on ChartRedraw() you should write to ServiceDesk.
If you want some useful advice here, you should post some code to reproduce the issue.