[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] setting a callback in xlib
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] setting a callback in xlib |
Date: |
Sat, 7 Mar 2009 23:14:13 +0100 |
On Sat, Mar 7, 2009 at 7:10 AM, Eduardo Cavazos <address@hidden> wrote:
>
> Here's how I'm defining 'XSetErrorHandler' on the Chicken side:
>
> (define XSetErrorHandler
> (foreign-safe-lambda c-pointer XSetErrorHandler
> (function int (c-pointer c-pointer))))
>
> And finally, a test error handler:
>
> (define-external (xerrorhandler (c-pointer dpy) (c-pointer ev)) int
> (display "Error handler called\n"))
>
> If I trigger an X error, I get a pretty wacky error:
>
> Error: bad argument count - received 134902918 but expected 2: #()
>
How do you invoke XSetErrorHandler?
cheers,
felix