[Gambas-user] signal #11

Stefano Palmeri rospolosco at ...152...
Wed Sep 23 16:29:43 CEST 2009


Il mercoledì 23 settembre 2009 14:29:08 Benoît Minisini ha scritto:
> > This code stopped with signal #11:
> >
> > ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
> >,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, PUBLIC SUB Main()
> >
> >   DIM sHostname, sDisplay AS String
> >   DIM sClipboardLastEntry AS String
> >
> >   SHELL "hostname" TO sHostname
> >   SHELL "xdpyinfo | head -1 | awk '{print $4}'" TO sDisplay
> >
> >   sDisplay = Trim$(sHostname) & Trim$(sDisplay)
> >
> >   sClipboardLastEntry = XInternAtom(sDisplay, "PRIMARY", FALSE)
> >
> > END
> >
> > EXTERN XInternAtom(sDisplay AS String, sAtom AS String, boolValue AS
> >  Boolean) AS String IN "libX11"
> > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
> >'' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
> >
> > I'm trying to use XInternAtom function, but I'm not able. This code stops
> >  with error #11. Any help appreciated for making it work. Thanks.
> >
> > Saluti,
> >
> > Stefano
>
> The first argument of XInternAtom is a pointer to the display, not a
> string. You get a pointer to the display when you connect to the X11
> server.
>
> I don't know how to get it after that (as when your code starts, the
> connection is already done).
>
> Regards,

Thank you for explanation. 

Stefano




More information about the User mailing list