[plt-scheme] FFI callbacks stored in uncooperatively realloc'd C
Chongkai,
Thanks for your reply. The #:keep behaviour introduced between
4.1 (the version I was using) and 4.2 has done the trick.
Regards,
Tim
On 25/11/09 17:54, Chongkai Zhu wrote:
> I haven't be able to try the code on my computer yet, but why you
> redefine `meaning-of-life' here? According to PLT doc (the #:keep part
> of _cprocedure), if you just keep the original `meaning-of-life' in
> memory(only remove it when you don't need the C call back anymore)
> everything should work.
>
> Chongkai
--
Tim Brown <tim.brown at cityc.co.uk> | City Computing Limited |
T: +44 20 8770 2110 | City House, Sutton Park Road |
F: +44 20 8770 2130 | Sutton, Surrey, SM1 2AE, GB |
-----------------------------------------------------------------------|
BEAUTY: What's in your eye when you have a bee in your hand |
-----------------------------------------------------------------------'
City Computing Limited registered in London No. 1767817.
Registered Office: City House, Sutton Park Road, Sutton, Surrey, SM1 2AE
VAT number 372 8290 34.