> Hi Valery, > > I'll check your changes. I propose to change the return value of > HandleTermInput to a Bool_t to be symmetric with the other event handlers. Yes, I agree. I was not sure the TApplication interface I have used is the best one. One has to distinguish some how whether the base class TApplication or derived class is in use and I was reluctant to involve any RTTI (ROOT or native) at this point. I did think about "bool" type. However I found this type is proved to be too restrictive. Very often we need more then 2 possible values to choose from. Usually there are 3 at least. For example the return value can be treated in future as a number of bytes read: if it is >=0 and -1,-2 ... left to indicate some errors or exeptions Anyway at this point I have no solid evidence one needs more then 2 values to back the "int" return type. Cheers, Valeri > Cheers, Fons. > > > On Mon, Sep 17, 2001 at 06:41:09PM -0400, Valeri Fine wrote: > > I've gotten a vacation and found some time to fix this problem. > > (see diff files attached) > > This fix requires the minor change of the TApplication class interface > > > > void TApplication::HandleTermInput(){} > > > > should be replaced with > > > > Int_t TApplication::HandleTermInput(){return -1;} > > > > May be ROOT team will find another final solution. > > Please try or wait the official CVS version. > > > > Best regards, Valeri > > > > ----- Original Message ----- > > From: "Axel Naumann" <a.naumann@worldnet.att.net> > > To: "joe robe" <joer00@yahoo.com>; <roottalk@pcroot.cern.ch> > > Sent: Tuesday, September 11, 2001 2:39 PM > > Subject: RE: [ROOT] cpu 100 % on idle ! > > > > > > > Hi, > > > > > > this is nothing new, the reason is that TWin32Application is "idling" by > > > executing several methods (checking for messages, key input etc) nonstop. > > I > > > believe Valeri is working on this... > > > > > > Cheers, Axel. > > > > > > > -----Original Message----- > > > > From: owner-roottalk@pcroot.cern.ch > > > > [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of joe robe > > > > Sent: Tuesday, September 11, 2001 2:16 AM > > > > To: roottalk@pcroot.cern.ch > > > > Subject: [ROOT] cpu 100 % on idle ! > > > > > > > > > > > > hi rooters, > > > > > > > > with every new version compiled programs under vc++ > > > > run worse, especially much slower. > > > > > > > > Now my cpu goes to 90-100 % after all code is executed > > > > while some stuff appears a few seconds AFTER the last > > > > code line (e.g cout << "end code" appears, 2 seconds > > > > later a histogramm which was constructed many lines > > > > before !). > > > > > > > > My code looks like > > > > > > > > TROOT ROOT("blabla","blabla"); > > > > TApplication RQuantApp("blabla",&argc,argv); > > > > > > > > some code here > > > > > > > > RQuantApp.Run(kTrue); > > > > > > > > This line is the problem, I need it to keep the app in > > > > memory. If i replace it by cin >> x cpu goes down to > > > > idle ! > > > > > > > > What I am doing wrong here or it this a root bug ? > > > > > > > > Joe > > > > > > > > > > > > > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > Get email alerts & NEW webcam video instant messaging with Yahoo! > > > > Messenger > > > > http://im.yahoo.com > > > > > > > > > > > > > > > > -- > Org: CERN, European Laboratory for Particle Physics. > Mail: 1211 Geneve 23, Switzerland > E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 > WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480 >
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:00 MET