[Gambas-user] signal #11

Stefano Palmeri rospolosco at ...152...
Wed Sep 23 12:24:17 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






More information about the User mailing list