Folks,

I posted this on IRC earlier today with no response:
  "With ffi, i have a function which returns a pointer which has been
   malloc'd using a GC_malloc (linked with my foreign library).

  "I need this pointer to remain visible within racket (i.e. on the stack
   or anywhere else that the CGC would find it). This is fine for
   racketcgc (since GC_malloc is shared between my library and racket)
   but how do i keep a pointer visible with racket3m?

  "[if possible, without "remembering" it explicitly in my library]"

Does anyone have any idea how to hint to the FFI that I want this reference
kept visible?

Regards,

Tim

--
Tim Brown <[email protected]>  | 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.
____________________
 Racket Users list:
 http://lists.racket-lang.org/users

Reply via email to