Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, March 2007
crash at Xlib function call


Message 1 in thread

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 ?


--
 [ signature omitted ] 

Message 2 in thread

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:
> http://lists.trolltech.com/qt-interest/

Attachment:

Attachment: pgpHXPYczVtFa.pgp
Description: PGP signature


Message 3 in thread

Giora


--
 [ signature omitted ] 

Message 4 in thread

Giora Guth schrieb:
> Giora

By sending the useless keyword "Unsubscribe" to this list which is in
fact mapped to the function "DoubleTraffic" you have activated the
secret and undocumented feature "Send every post twice to this recipient".

If on the other hand this was not the intend you might rethink your
action and study the "How to unsubscribe FAQ" which has been posted
dozens of times on this list ;)

  http://lists.trolltech.com/qt-interest/2005-08/thread00574-0.html

and here

  http://lists.trolltech.com/qt-interest/2007-02/msg00987.html#msg00987


Good luck, Oliver

--
 [ signature omitted ] 

Message 5 in thread

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.

--
 [ signature omitted ]