[ROOT] potential memory leak?

From: Choi Ki-young (xenus@gnu.org)
Date: Wed May 29 2002 - 02:36:26 MEST


Thanks for answer about previous my question. :-)
But, I have a new problem. 

------------------------------------------------
#include <iostream>
#include <string>
#include <fstream>
#include <cmath>
using namespace std;

#include "TMatrix.h"
#include "TCanvas.h"

int main(void)
{
	TCanvas *c = new TCanvas("c1");
	int i,j;

	TMatrix Ex(10,10);

	for(i=0;i<10;i++)
		for(j=0;j<10;j++)
			Ex(i,j) = 0.0;
	for(i=0;i<10;i++)
		for(j=0;j<10;j++)
		{
			Ex(i,j) = i*j; 
			Ex.Draw("SURF"); 
			c->Update();
		}


	getchar();

	return(0);
}// end of main
------------------------------------------------

If I run this source, it works good. But printout this warnning. 

------------------------------------------------
Warning in <TH1::Build>: Replacing existing histogram: TMatrix
(Potential memory leak).
------------------------------------------------

What is this meaning? What is a problem?

-- 
Sincerely, Ki-young

pub 1024D/B4446BBF 2002-02-27 Choi Ki-young <xenus@gnu.org>
Fingerprint: 99AF B7C5 2D4E B965 B3AA  A725 A710 F606 B444 6BBF





This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:54 MET