bus error related to syntax...

From: Del Buono Luigi (delbuono@in2p3.fr)
Date: Wed Nov 17 1999 - 15:12:43 MET


May be this is something more related to CINT, but ROOT users may have
already encountered this problem:

when using constructions such has:

                 float p[50][5];
                 PAFList* fillList = new PAFList();
		 .
		 .
		 .
		 //Fill correctly "fillList"
		 .
		 .
		 for(int itrk=0;itrk<3;itrk++) {
                   PAFCandidate &c=(*fillList)[itrk];
		   p[itrk][0]=c.p3().x();  
                 }

I get a "Bus Error" message in interactive ROOT, whereas using simply:

                 float p[50][5];
                 PAFList* fillList = new PAFList();
		 .
		 .
		 .
		 //Fill correctly "fillList"
		 .
		 .
		 for(int itrk=0;itrk<3;itrk++) {
		   p[itrk][0]=((*fillList)[itrk]).p3().x();  
                 }
		 
everything looks fine... Is there a known reason for that ?

L. Del Buono



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