Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » IDE debugger hangs on GuiMT example
Re: IDE debugger hangs on GuiMT example [message #36227 is a reply to message #36115] Mon, 14 May 2012 20:50 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Better solution... I would say it's solved if/when a small helper code is embedded in Upp CtrlCore :

#ifdef _DEBUG
void _DBG_Ungrab(void)
{
	XUngrabPointer(Xdisplay, CurrentTime);
	XUngrabKeyboard(Xdisplay, CurrentTime);
	XFlush(Xdisplay);
}
#endif


In the meanwhile, if you need you can drop the following code somewhere in your debugged application :

NAMESPACE_UPP
#ifdef _DEBUG
void _DBG_Ungrab(void)
{
	XUngrabPointer(Xdisplay, CurrentTime);
	XUngrabKeyboard(Xdisplay, CurrentTime);
	XFlush(Xdisplay);
}
#endif
END_UPP_NAMESPACE


and you'll see that the problem is gone.
Gdb_MI2 will take care of mouse grabbing unlock every time the application is stopped.

Mirek, could you please add this one to CtrlCore ? I put into X11App.cpp, but any cpp inside CtrlCore should be good.

Ciao

Max
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon1.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: gcc.bm file for Xubuntu
Next Topic: Build a project composed by multiple shared libs
Goto Forum:
  


Current Time: Sun Apr 28 23:12:51 CEST 2024

Total time taken to generate the page: 0.03220 seconds