TProfile in a object in a file in a macro causes bomb in released version of root

From: Gordon Watts (Brown University) (gwatts@fnal.gov)
Date: Thu Mar 12 1998 - 07:53:37 MET


Hi,
  Below I have two files, test.C and test1.C. When I run test.C (root -q
test.C) I get an access violation: NT pops up a dialog and complains that I
tried to access memory at 0xfffff or some such address. Am I doing something
wrong, or is this a bug in root? BTW, I can verify this on 1.03/09 on a IRIX
6 system...

	Cheers,
		Gordon.

FILE: test.C
{
	TProfile *s = new TProfile ("my", "good", 16, -4, 0, 0, 20);
	s->Fill (-1,10);
	printf ("Just did the first fill, will now try the second");
#include "test1.C"
	test1 junk1;
}

-----------
FILE: test1.C
class test1 {
public:
	test1 (void);
};

test1::test1 (void)
{
	TProfile *j = new TProfile ("hi", "there", 16, -4.0, 4.0, 0, 20);
	j -> Fill (10, 20);
}



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:30 MET