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 > > > >
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:00 MET