Hello, I am trying to create and manipulate some C structures with the foreign interface of Guile 2.0. This is part of an extension to an existing application.
How to make a structure created with 'make-c-struct' permanent? That is avoiding garbage collection and then letting the application, not Guile, ultimately taking care of its memory. I tried with guardians but the memory still seems to be overwritten from time to time. For example, with the script attached, here is what I get: $ guile --no-auto-compile -s test.scm (0 1 2 3 4 5 6 7 8 9) (0 1 2 3 4 5 6 7 8 9) (80 62 102 97 107 101 60 47 80 62) $ guile --version guile (GNU Guile) 2.0.6.1-abd73-dirty Copyright (C) 2012 Free Software Foundation, Inc. License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. $ Regards, -- Patrick Bernaud
test.scm
Description: Binary data