[cffi-devel] For the CFFI gurus: Tcl/Tk: Tk_Init crashes (Lispworks)

Martin Simmons martin at lispworks.com
Thu Sep 20 14:34:01 UTC 2007


>>>>> On Thu, 20 Sep 2007 14:30:05 +0200, Frank Goenninger said:
> 
> Hi you all, the gurus of CFFI ;-)
> 
> I do have a major problem when running the following code on LW
> Personal Edition on Mac OS X 10.4.10 Intel:
> 
> ...snip...
> 
> (defun tk-app-init (interp)
>    (assert (not (null-pointer-p interp)))
>    (Tcl_Init interp)
>    (Tk_Init interp)   ;; <<<--- CRASH HAPPENS HERE ...
>    ;; Return OK
>    (foreign-enum-value 'tcl-retcode-values :tcl-ok))
> 
> ...snip...
> 
> Sooo - the code crashes at the point marked "<<<--- CRASH HAPPENS
> HERE ...". This occurs on LW but not on ACL 8.1 Express Edition.
> 
> I have double, no triple, checked the defc... stuff - to no avail.
> The code had been working for half a year on ACL without problems. I
> recently switched to LW and can't get to the point of seeing where
> there's something going astray.
> 
> Any help really appreciated!!! Thanks so much in advance !

Please give more details on how it crashes.  Does the OS create a crash.log
file?

-- 
Martin Simmons
LispWorks Ltd
http://www.lispworks.com/



More information about the cffi-devel mailing list