> 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,

-- 
Benoît Minisini

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to