qt-interest@trolltech.com
[Top] [All Lists]

Re: crash at Xlib function call

Subject: Re: crash at Xlib function call
From: Yong
Date: Tue, 13 Mar 2007 21:07:30 +0200
hi,

no the pointer is fine, no probs with it.
the problem also disappeared - the reason was probably because the OS was running in a virtual machine or because that in the same session of DDD the program was restarted many times.

thanks for help.

--
Yong



On 13 Mar 2007, at 17:08, Petar Forai wrote:

Hi Yong!

Could you please explain why you are using an Xlib macro for that? (the reason 
for the crash seems do be that the pointer you passed to that macro isn't 
valid.

regards,

P

On Tuesday 13 March 2007 14:53, Yong wrote:
In a QT app I have this:

void Class::buttonClickHandler()
{
           Window rootWindow = XDefaultRootWindow( display );
}

and BOOM, it crashes.

gdb:
Program received signal SIGSEGV, Segmenataion fault.
0x288d8c42 in XDefaultRootWindow() from /usr/X11R6/lib/libX11.so.6


any clues ?


--
Yong.

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body. List archive and information:


<Prev in Thread] Current Thread [Next in Thread>