Re: [ROOT] possible bug in cint?

From: Woon-Seng Choong (wschoong@lbl.gov)
Date: Tue Oct 23 2001 - 18:22:44 MEST


Rene,
    I had the same problem on a Window 2000 platform and a Solaris 5.7 
platform.  To reproduce my problem you have to uncomment the following 
lines in the function "calibrateEnergy"

     for (Int_t i=0; i<nModule; i++) {
	moduleNum = moduleList[i];
	readModuleSpectrum(0, moduleNum, 0, module);
     }

I tried Philippe's suggestion but have the same problem. In fact, my 
problem is not that the process core dump but the process seem to be 
stuck in the while loop in the function"readModuleSpectrum".

	Woon-Seng Choong



On Tuesday, October 23, 2001, at 12:46 AM, Rene Brun wrote:

> Hi,
>
> I cannot reproduce your problem. Your macro runs correctly for me.
> On which system are you running ?
>
> Rene Brun
>
>
> WSChoong@lbl.gov wrote:
>>
>>   I am using version 3.02.02.  Attached is a C++  file and a data file
>> which is read by
>> one of the functions.  I ran the file in root using ".x
>> calibrateEnergy.C()".   The function
>> "readModuleSpectrum" read the data file correctly if the for loop in
>> "calibrateEnergy" is
>> commented out.  However once the for loop is uncommented,  the 
>> condition
>> for the
>> while loop in "readModuleSpectrum" is always true even though the
>> condition is false.
>>
>>     Woon-Seng Choong
>>
>>   
>> --------------------------------------------------------------------------------
>>
>>                            Name: calibrateEnergy.C
>>    calibrateEnergy.C       Type: 
>> application/x-unknown-content-type-cfile
>>                        Encoding: base64
>>
>>                        Name: wta 0ch 0.txt
>>    wta 0ch 0.txt       Type: Plain Text (text/plain)
>>                    Encoding: base64



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:04 MET