It prints #
However, I cannot reproduce this problem any more.
Steve
2013/12/10 Ludovic Courtès :
> Sun Yijiang skribis:
>
>> static void _main(void *data, int argc, char* argv[]) {
>> // smob definitions
>> DEFINE_SMOB()
>> ...
>>
the problem goes away. I can say I found a fix, but I still
don't know the cause.
Any idea?
Best,
Steve
2013/12/7 Ludovic Courtès
>
> Sun Yijiang skribis:
>
> > It's an application using Guile for extensions, involving a bunch of C++ /
> > Scheme code and ne
nfomation. I'll try to
post an example script that can reproduce this problem.
Still, any hint on where I can start looking into this problem?
Thanks,
Steve
2013/12/7 Ludovic Courtès
> Sun Yijiang skribis:
>
> > This happens very rarely, and randomly on almos
This happens very rarely, and randomly on almost any guile scripts, errors
are:
Backtrace:
In ice-9/boot-9.scm:
157: 7 [catch #t # ...]
In unknown file:
?: 6 [apply-smob/1 #]
In ice-9/boot-9.scm:
63: 5 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
432: 4 [eval # #]
386: 3 [eval # #]
3
Thank you guys, I got it through.
Best,
Yijiang
2013/5/29 Mike Gran :
>>Hi guys,
>
>
>>I'm using a very simple smob which only carries a pointer in the
>>immediate word. It works fine, but what worries me is that the free
>>function seems never called. Am I doing anything wrong? What's the
>>
(smob);
delete (MyModel*)ptr;
}
...
model_smob_t = scm_make_smob_type("model", 0); // shall I use zero here?
scm_set_smob_free(type, free_model);
...
----------
Regards,
Sun Yijiang