[Ecls-list] ECL native CLX - id-choice-error

Matthew Mondor mm_lists at pulsar-zone.net
Sat Jul 30 09:40:10 UTC 2011

On Sat, 30 Jul 2011 04:48:35 -0400
Matthew Mondor <mm_lists at pulsar-zone.net> wrote:

> I however honestly never tried using CLX before and it was still on my
> totry list; but I did a quick test today and am getting a type of
> resource error (id-choice-error resource-error), at create-window.

Actually, I was mistaken, the error occurs at xlib:display-finish-output calls.


;;; Interactive test
(defparameter *display* (xlib:open-display ""))
(defparameter *screen* (first (xlib:display-roots *display*)))
(defparameter *root-window* (xlib:screen-root *screen*))
(defparameter *window* (xlib:create-window
			:parent *root-window*
			:x 64
			:y 64
			:width 320
			:height 220
			:border (xlib:screen-white-pixel *screen*)
			:background (xlib:screen-black-pixel *screen*)))
(xlib:map-window *window*)

;;; XXX Errors here XXX
(xlib:display-finish-output *display*)
; Condition of type: ID-CHOICE-ERROR
; Asynchronous ID-CHOICE-ERROR in request 11 (last request was 13)  Code 1.0 \
;  [CreateWindow] ID #x1

(xlib:unmap-window *window*)
(xlib:destroy-window *window*)
(xlib:close-display *display*)


More information about the ecl-devel mailing list