Using Root 2.25, built with Visual C++ 6.0 SP3 under WinNT 4.0: I try to save a canvas as a .root file using either the SaveAs() method or the interactive menu bar "Save As" command. I get the following root crash: >D:\Users\Jonathan\Root\DefectPool>root loader.C PlotDP.C > the current keyboard layout is 437 >Warning in <TWinNTSystem::SetProgname>: Wrong Program path > ******************************************* > * * > * W E L C O M E to R O O T * > * * > * Version 2.25/00 20 June 2000 * > * * > * You are welcome to visit our Web site * > * http://root.cern.ch * > * * > ******************************************* > >CINT/ROOT C/C++ Interpreter version 5.14.40, May 21 2000 >Type ? for help. Commands must be C++ statements. >Enclose multiple statements between { }. >root [0] >Processing loader.C... >(int)0 > >Processing PlotDP.C... >root [2] jmgPage->m_pCanvas->SaveAs("foo.root") ><CustomReAlloc2>: passed oldsize 1032, should be 33620099 >Fatal in <CustomReAlloc2>: unreasonable size (33620099) >aborting >Warning in <TWinNTSystem::StackTrace>: this method must be overridden! > >abnormal program termination and then root terminates. Can anyone help me figure out what is causing this crash and whether it's my fault or the fault of some bug in root. My loader macro loads a fairly large DLL that worked just fine with root 2.23, and which rebuilt with no errors or warnings under root 2.25. PlotDP.C is a macro that sets several parameters and then calls functions in the DLL that do the real work. Nothing in any of my code involves CustomReAlloc2, so this seems to be an internal root problem, but I have no clue where to start looking. As an idiocy-check I tried running hsimple.C in the tutorials directory and was able to execute c1->SaveAs("foo.root") just fine. Everything I am doing here worked fine under root 2.23. Nothing in my code changed, but now root crashes when I try to save the canvas as a .root file. I can save it as a postscript file with no problem. Thanks for any assistance, Jonathan =========================================================================== Jonathan M. Gilligan <jonathan.gilligan@vanderbilt.edu> Research Assistant Professor of Physics (615) 343-6252 Dept. of Physics and Astronomy, Box 1807-B Fax: 343-7263 6823 Stevenson Center Vanderbilt University, Nashville, TN 37235 Dep't Office: 322-2828
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:29 MET