I am writing an online monitor GUI in which a set of TH2’s are updated and re-drawn every 10 seconds. While running top alongside my GUI, I noticed that the memory footprint increases by about 10MB upon each re-drawing iteration.
Is there a way to prevent this? A stripped-down version of my code is attached.
Do you mean destroy the objects themselves, or simply remove them from the canvas somehow? I’d rather avoid the former, and I’ve tried using TCanvas::Clear() to achieve the latter with, negative results.
pwaller, I just noticed that myself, this morning. The memory increases every time the thread is called, regardless of whether or not the histogram functions were commented out.