[Gambas-user] signal #11

Benoît Minisini gambas at ...1...
Wed Sep 23 14:29:08 CEST 2009


> 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




More information about the User mailing list