Menu Sample -- Event Disabling wrong menu

Vadim Zeitlin vadim at wxwidgets.org
Mon Aug 6 05:11:29 PDT 2007


On Sun, 05 Aug 2007 20:20:35 -0700 "matt at kettlewell.net" <matt at kettlewell.net> wrote:

m> A side question then about the event.Enable() call in the
m> OnClearLogUpdateUI(wxUpdateUIEvent& event) method.
m> 
m> How do I debug it?  Or rather, is it common for a system to lock-up
m> when setting a break-point on an event in this method?

 No, it isn't, and it doesn't do it for me (even though gdb under amd64 is
even more flaky than under x86).

m> I seem to lock up every time I set a break-point there and click on
m> the menu heading to trigger the event.

 I think in this case what happens is that the mouse is grabbed when the
menu is opened and so you can't switch to gdb window (I don't see this
problem because I log in remotely). Apparently using ddd can be a work
around as it is supposed to ungrab the pointer when it stops at breakpoint.
Maybe you could add a call to XUngrabPointer() to the breakpoint command.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list