U++ framework
Do not panic. Ask here before giving up.

Home » Community » U++ community news and announcements » Upp 610-dev2 released
Re: Upp 610-dev2 released [message #5810 is a reply to message #5802] Tue, 17 October 2006 18:50 Go to previous messageGo to previous message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
Thanks!
Went into the debugger with it and found the culprit.
In TopWinX11.cpp -> TopWindow:Open() there is a safe-guard missing, when retreiving the frame extents:

Vector<int> fe = GetPropertyInts(top->window, XAtom("_NET_FRAME_EXTENTS"));
	if (fe != NULL)
	{
		windowFrameMargin.left = max(windowFrameMargin.left, fe[0]);
		windowFrameMargin.right = max(windowFrameMargin.right, fe[1]);
		windowFrameMargin.top = max(windowFrameMargin.top, fe[2]);
		windowFrameMargin.bottom = max(windowFrameMargin.bottom, fe[3]);
	}


My window-manager didn't support this hint. So without the pointer safe-guard, like you see I added above, it'll crash.
I made the window-manager support the hint meanwhile. Still, that's reckless programming style Evil or Very Mad

Guido
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Quick start issues for new users
Next Topic: Upp 610-dev3 released
Goto Forum:
  


Current Time: Sat Jun 20 07:30:31 GMT+2 2026

Total time taken to generate the page: 0.01126 seconds