MarkJoy:
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?
- That's an assumption. --> What are you talking about?
- Nothing is wasted --> I am a user. To me something allocated to do nothing, it's a waste. WindowRedraw() does not increase memory usage
- That's an assumption. --> What are you taking about?
- Only if your terminal goes over GB of usage. --> Again, what are you talking about?
- Just because it allocated memory means nothing. A new tick could have just as well cause that. --> Copy: I am a user. To me something allocated to do nothing, it's a waste. WindowRedraw() does not increase memory usage
- 5.5 MB is irrelevant when your machine has multiple Gigabytes of swap. Do you panic that you are dieing of blood loss when a Mosquito takes a sip from your arm? --> Do you even understand my question. The point is you waste 5.5MB for nothing. I you have 3billion $, shall you give me 3 million $?
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.
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!!
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.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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?