Oops, I might have sent it to the wrong address ... Dear ROOTers, I know this has been a very old topic. But somehow I got stuck on it. I have a realtime cusumer program, which will display histograms periodically onto a canvas. I deleted the histograms after each Draw, but observed a serious increase of the memory usage. I reproduced the problem with the attached small code. I compiled it into an executable and ran it, and oberved the increasing memory usage clearly with "top". I tried to set the histogram kCanDelete bit, and tried "delete" as well as "Delete()", none of these helped. gObjectTable->Print() didn't show any extra objects when the program ran ... On the other hand, if I modify this code into a ROOT CINT script, I couldn't observe the leak within 2000 draws. So there must be magic somewhere. I am using a RH 9 system, and ROOT 3.05/07 compiled with gcc3.2. I would be really appreciated if someone offers help! Thanks! Jianglai
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET