[racket] FFI question: problem passing a cstruct to a function for output

From: keydana at gmx.de (keydana at gmx.de)
Date: Fri Jul 22 05:17:50 EDT 2011

Hi Thomas,

many thanks for your reply! 

> the declaration of the wrapper function looks correct. For the ind_ptr
> argument you could actually pass an array of booleans instead of some
> structure,

I might try this instead, and see if I get the same error ... But I find your arguments against using OCI_GetStruct very convincing, and though my present goal is a mixture of just being able to write racket code against an Oracle database and implementing bindings  to (some part of) the OCILIB library, it's perhaps not worth the effort in this case. (The whole point of using OCILIB being that you don't have to plunge into the depths of direct OCI programming - whenever I look up things in the OCI programmers guide from Oracle, I'm amazed how many things are handled for you by this free library :-) )

> For debugging the native code you can run Racket inside gdb, set signal
> handling to ignore the segmentation faults triggered by Racket's memory
> management mechanisms and set breakpoints in the native functions you
> are interested in.

That's good to know, in case I absolutely have to - but here, I will do as you suggest and just use the single-column access functions (which doesn't keep me from fetching into racket structs anyway :-;)

Ciao, and thanks for the help,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110722/0d1552eb/attachment.html>

Posted on the users mailing list.