Guile 1.8 Garbage Collection Question

2011-10-25 Thread Whitlock, Bradley D
I have built Guile 1.8.8.2 on MinGW. I have wrapped some gtkwave code with Guile and have a memory issue. The following code apparently never frees 's', but I am not sure why. SCM_DEFINE (libguile_fst_writer_emit_value, libguile-fst-writer-emit-value, 3,0,0,

RE: Guile 1.8 Garbage Collection Question

2011-10-25 Thread Whitlock, Bradley D
I had a copy-paste error in the second function listing, it should be this: SCM_DEFINE (libguile_fst_writer_emit_value, libguile-fst-writer-emit-value, 3,0,0, (SCM scm_ctx, SCM scm_fsthandle, SCM scm_val), Write a change on fstHandle) {

Re: Guile 1.8 Garbage Collection Question

2011-10-25 Thread Cedric Cellier
I cant see anything wrong with your function, so I suspect there is something wrong with the function you pass your string to. Maybe it's trying to write into s but does write out of bounds insead, damaging the heap ?? Note: it is my understanding that s is allocated on C's heap and so will not