Hi Valeriy, The problem is situed into TGWin32ProxyBase.cxx : Into TGWin32ProxyBase::ForwardCallBack(Bool_t sync) : This piece of code is producing the reported behaviour : // wait because there is chance that message queue does not exist yet ::SleepEx(50,1); if (wait++>5) return kFALSE; // failed to post But, as far as I can see, the problem occurs only on NT, not on XP... Cheers, Bertrand. ----- Original Message ----- From: "Valeriy Onuchin" <Valeri.Onoutchine@cern.ch> To: "Pere Mato Vila" <Pere.Mato@cern.ch>; <roottalk@pcroot.cern.ch> Sent: Tuesday, November 18, 2003 5:31 PM Subject: Re: [ROOT] Strange TApplication timing > Hi Pere, > I cannot reproduce it (win32gdk, 3.10/01) > My code is: > > #include "TApplication.h" > #include "TTimeStamp.h" > > int main (int argc,char** argv) { > TTimeStamp().Print(); > { > TApplication ROOTApp( "ROOTApp", &argc, argv ); > TTimeStamp().Print(); > } > TTimeStamp().Print(); > return 0; > }; > > The result: > ./test.exe > Date/Time = Tue, 18 Nov 2003 16:29:09 MET +185942400 nsec > Date/Time = Tue, 18 Nov 2003 16:29:09 MET +396244800 nsec > Date/Time = Tue, 18 Nov 2003 16:29:09 MET +396244801 nsec > > Regards. Valeriy > > > Dear rooters, > > > > I have noticed that on Windows using ROOT 3.10.1 the destructor of > > TApplication takes up to 10 seconds. The CPU is not used during this > > time, so I suspect a timeout condition somewhere. The test.cpp program > > to show the problem is > > > > #include "TApplication.h" > > #include "TTimeStamp.h" > > > > int main (int,char**) { > > TTimeStamp().Print(); > > { > > TApplication ROOTApp( "ROOTApp", 0, 0 ); > > TTimeStamp().Print(); > > } > > TTimeStamp().Print(); > > }; > > > > The output I get is > > > > C:\>test.exe > > Date/Time = Tue, 18 Nov 2003 13:53:45 W. Europe Standard Time +241801600 > > nsec > > the current keyboard layout is 437 > > Date/Time = Tue, 18 Nov 2003 13:53:45 W. Europe Standard Time +331931200 > > nsec > > Date/Time = Tue, 18 Nov 2003 13:53:55 W. Europe Standard Time +336316800 > > nsec > > > > In addition. Is there a way to disable the message "the current > > keyboard layout is 437"? > > > > > > > > ------------------------------------------------------------ > > Pere Mato CERN, EP Division, CH 1211 Geneva 23, Switzerland > > e-mail: Pere.Mato@cern.ch tel: +41 22 76 78696 > > fax: +41 22 76 79425 gsm: +41 79 20 10855 > > > > > > > > >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET