Re: [ROOT] Debugging code when pointer is grabbed and not returned.

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Wed Dec 19 2001 - 17:25:29 MET


Hi Brett,

   use ddd, it will ungrab the pointer, when grabbed and stopped
in a breakpoint.

Cheers, Fons.



Brett Viren wrote:

> Hi.
> 
> First: Fons, thanks for the additions to the TGMenus, they seem to
> work fine.
> 
> Now, I am having a problem in that I am getting SegVs in (my) code
> attached to menu callbacks and I want to debug them in GDB.  The
> problem is that the menus grab the pointer and when the SegV occurs
> the pointer is never ungrabbed.  My entire X session is effectively
> locked out and I must Ctrl-Alt-F1 to the console and kill my ROOT app
> to regain pointer control.
> 
> Does anyone know how I to force the pointer to ungrab after a SegV, or
> otherwise debug under GDB so that the pointer is not permanently
> grabbed?
> 
> Thanks,
> -Brett.
> 
> 


-- 
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:12 MET