You use a synchronous timer I hope. If not that is the problem. If your use directly X lib calls there should be no problem. Using Xt needs some special attention. If the problem persists send me the code so I can see what goes on. Cheers, Fons. Julien Sylvestre wrote: > > I am trying to run an application which uses the ROOT libraries > and some other code which makes explicit calls to the X server. To be > specific, the ROOT libs are used to build a nice GUI with a number of > controls (sliders, buttons, etc), and the other code produces a scrolling > plot by using directly functions like XCopyArea, etc. The scrolling plot > is inside the GUI window, and it is updated using a TTimer object. > > Everything works very well when I leave the code running without > touching any of the control widgets. When I start playing with the sliders > and buttons, however, it doesn't take long that the application gets trap > into an infinite loop (CPU usage jumps to 100%, and sometimes my display > 'freezes' until I kill the application). > > While the application is frozen, if I attach gdb to the process, > it tells me that the code is stuck in _XFlushInt(). I never call XFlush > explicitely. > > It seems that there is a weird interaction between how ROOT > handles its control widgets and how my Xlib based objects gets updated. > > Any ideas/suggestions about that? > > Thanks, > Julien. > > ----------------------++---------------------- > Julien Sylvestre > email: julien@ligo.mit.edu > phone: 617-253-7878 > URL: web.mit.edu/julien/www -- 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 7677910
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:47 MET