Re: GDK:KEYVAL-NAME bombs...

Espen S Johnsen <[email protected]> 14 Nov 2007 16:46:24 +0100
Newsgroups gmane.lisp.clg.devel
Message-ID <[email protected]>
Chisheng Huang <[email protected]> writes:

> I'm running the October/2007 snapshot of CMUCL on a Linux machine with the
> latest CLG from the CVS depository.
> 
> Running the following code to get a window:
> 
> (let ((w (make-instance 'gtk:window)))
>   (glib:signal-connect
>    w
>    :key-press-event
>    #'(lambda (kevent)
>        (print (gdk:keyval-name (gdk:event-keyval kevent)))
>        (finish-output))
>   (gtk:widget-show w)))
> 
> Make the window the focused window, then, press any key in a
> keyboard, and you'll get the following error:

The problem is simply that keyval-name tries free the returned string,
which it shouldn't. I've checked in a fix for this.

-- 
Espen

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/