TGeoManager crash when Exporting geometry as ".C"

Running v5.21/04 on Windows Vista Ultimate, I am having trouble exporting a geometry file as C++ … exporting as .xml works fine.

Here is a session extract:

  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   5.21/04    2 October 2008   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *            *
  *                                         *

ROOT 5.21/04 (trunk@25661, Oct 02 2008, 19:20:00 on win32)

CINT/ROOT C/C++ Interpreter version 5.16.29, Jan 08, 2008
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] TFile *tf = TFile::Open("J:/cmsShow21/cmsGeom10.root");
root [1];
TFile**         J:/cmsShow21/cmsGeom10.root
 TFile*         J:/cmsShow21/cmsGeom10.root
  KEY: TGeoManager      cmsGeo;1        CMS Detector
  KEY: TTree    idToGeo;1       Raw detector id association with geomtry
root [2] TGeoManager *geom = new TGeoManager("cmsGeo","CMS Detector");
Info in <TGeoManager::TGeoManager>: Geometry cmsGeo, CMS Detector created
root [3] geom->Export("C:/temp/cmsGeom10.xml");
Info in <TGeoManager::Export>: Exporting cmsGeo CMS Detector as root file. Optim
izations streamed.
root [4] geom->Export("C:/temp/cmsGeom10.C");

at this point there is an exception in the C++ runtime.


Hi Julian,

Does this happen also on Linux? We will need anyway the cmsGeom10.root file.