Hi, do you remember this mail thread? It was fixed. Now I switched from 3.10/02 to 4.00/08 and the same error happens again! Sometimes working with root is really a pain, because switching from one root version to the next one results in a lot of problems! And in many cases we are talking about problem which have already been fixed! Thomas. -------- Original Message -------- Subject: Re: [ROOT] TGMainFrame in batch mode Date: 25 Nov 2003 12:39:01 +0100 From: Fons Rademakers <Fons.Rademakers@cern.ch> Organization: CERN To: Rene Brun <Rene.Brun@cern.ch> CC: Thomas Bretz <Thomas_Bretz@ph.tum.de> References: <Pine.LNX.4.44.0311222356510.4961-100000@pcbrun.cern.ch> Hi Thomas, I've made a fix so that you can create a TGMainFrame in batch mode. Now in cvs, please let me know if it is ok for you. -- Fons On Sat, 2003-11-22 at 23:57, Rene Brun wrote: > Hi Fons, > > Please process this mail once you are back > > Rene > > On Sat, 22 Nov 2003, Thomas > Bretz wrote: > > > Hi Rene, > > > > you are joking, aren't you? TGMainFrame was working fine in Batch mode. > > I wrote a very powerfull class to organize our plots. And it was great, > > that I could also use the same class in Batch mode. Do you know how much > > work it would be to rewrite all this? I would have to create a base > > class defining the interface. I would need write a wrapper class such > > that the user doesn't recognize whether he is using the piece of code to > > organize his plots in batch mode or not... > > > > It took me almost a month to write such a powerfull tool. And I made use > > of the feature, that I could create a TGMainFrame in Batch mode. Where is > > the problem to find the reason why it is not working anymore? In batch > > mode I can suppress using all features of TGMainFrame except the creation. > > > > Thomas. > > > > On Sat, 22 Nov 2003, Rene Brun > > wrote: > > > > > Hi Thomas, > > > > > > The GUI classes are not supposed to work in batch mode. > > > You should use directly TCanvas. > > > > > > Rene Brun > > > > > > On Fri, 21 Nov > > > 2003, Thomas Bretz wrote: > > > > > > > Hi Rene, > > > > > > > > I have a class displaying several histograms in several > > > > TRootEmbeddedCanvases in TGMainFrame. > > > > >From this display I create nice Postscript files. > > > > This I want to do in Batch-mode, too. > > > > > > > > In older root version it was very simple: I replaced my > > > > TRootEmbeddedCanvas Canvases by TCanvases and everything worked fine. Now > > > > the constructor of TGMainFrame crashes... > > > > > > > > Thomas. > > > > > > > > > > > > On Fri, 21 Nov 2003, Rene Brun wrote: > > > > > > > > > Hi Thomas, > > > > > > > > > > Are you sure that you are not confusing TGMainFrame and TCanvas ? > > > > > What is the meaning of instantiating a GUI class in batch mode? > > > > > > > > > > Rene Brun > > > > > > > > > > Thomas Bretz wrote: > > > > > > > > > > > > Dear all, > > > > > > > > > > > > I have a TGMainFrame(0, 100, 100) in my program. In later root versions, > > > > > > this worked fine also in batch mode. With root 3.05/07 I get a crash in > > > > > > the constructor of TGMainFrame... any idea? > > > > > > > > > > > > Sorry, I have no more information. To reproduce it it is enough to do: > > > > > > root -b > > > > > > [0] TGMainFrame frame(0, 100, 100); > > > > > > > > > > > > Thanks, > > > > > > Thomas. > > > > > > > > > > > > > ----- > > > > Würden Sie Windows 95 die Kontrolle eines AKWs überlassen? > > > > Hiroshima '45...! Tschernobyl '86...!! Windows 95...!!! > > > > Unix ist benutzerfreundlich - es ist nur etwas wählerisch..." (Walter Misar) > > > > Was sagt ein arbeitsloser Physiker zu einem Physiker mit Arbeit? > > > > - "Eine Currywurst mit Pommes bitte!" > > > > > > > > > > > > > > ----- > > Würden Sie Windows 95 die Kontrolle eines AKWs überlassen? > > Hiroshima '45...! Tschernobyl '86...!! Windows 95...!!! > > Unix ist benutzerfreundlich - es ist nur etwas wählerisch..." (Walter Misar) > > Was sagt ein arbeitsloser Physiker zu einem Physiker mit Arbeit? > > - "Eine Currywurst mit Pommes bitte!" > > -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://www.rademakers.org/fons/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET