Re: [ROOT] continue statement in interpreted code??

From: Volker Hejny (V.Hejny@fz-juelich.de)
Date: Fri Aug 17 2001 - 12:12:51 MEST


Hi Rene,

On Fri, Aug 17, 2001 at 08:00:29AM +0200, Rene Brun wrote:
> I cannot reproduce this problem. Can somebody reproduce it running
> the script below? If yes, please indicate on which system/version.

I can reproduce the problem to some extent. In 3.00/06 the problem
is not there at all, in the current cvs version I observe the following:

Your macro works fine, but the originally posted one gives the
reported error message, but only at the first invocation. The second call 
to test_bug() then runs fine. 

Instead of removing the continue statement, the code works also,
if one adds a gPad->Update() right before the while() statement.
It also runs, if the continue statement will not be reached in
the first loop, i.e. preventing this by 'if (result<50 && i)'
helps also.

Volker

-- 
Dr. Volker Hejny                Tel: 02461/616853                      ** 
Institut f. Kernphysik          Fax: 02461/613930                     **
---------------------------------------------------------------- **  ** ---  
Forschungszentrum Juelich GmbH, D-52425 Juelich                    **



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