*** Masaharu Goto wrote : > > Nick, > > I've been very sorry for leaving your problem unresolved for a long time. > Today, I get, at least, a workaround and a light in the dark to > identify the cause. > > Workaround-1: > > It seems like that the calling function as local variable initialization > causes the crash. > int jp=index(row,col); > If you re-write it as follows, it worked fine. > int jp; > jp = index(row,col); > There are several locations you need to change. > This is a bug. > > Workaround-2: > As I proceed with above change, I found another problem. It crashes when > compiling bytecode. For the time being, please use optimization level 3. > Default is 4 which turns on incremental bytecode compilation of tribial > functions. > > root[0] .O3 > root[1] .x main.cc > > With these workaround, you macro worked. > > Masaahru Goto > Dear Masa, Thanks for your message and the fact that you made some time to look into the problem. I will try it out and will let you know. However, my intention is to run my code under ROOT in batch via root -b -q main.cc >main.log How can I here specify optimization level 3 instead of 4 ? I would prefer to be able in the .rootrc (or rootlogon.cc) to set the optimization level. Is this possible ? Cheers, Nick. *----------------------------------------------------------------------* Dr. Nick van Eijndhoven Department of Subatomic Physics email : nick@fys.ruu.nl Utrecht University / NIKHEF tel. +31-30-2532331 (direct) P.O. Box 80.000 tel. +31-30-2531492 (secr.) NL-3508 TA Utrecht fax. +31-30-2518689 The Netherlands WWW : http://www.fys.ruu.nl/~nick Office : Ornstein lab. 172 ---------------------------------------------------------------------- tel. +41-22-7679751 (direct) CERN PPE Division / ALICE exp. tel. +41-22-7675857 (secr.) CH-1211 Geneva 23 fax. +41-22-7679480 Switzerland CERN beep : 13+7294 Office : B 160 1-012 *----------------------------------------------------------------------*
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:19 MET