Re: Help needed on strange random error (Guile 2.0.9)

2013-12-12 Thread Sun Yijiang
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() >> ... >>

Re: Help needed on strange random error (Guile 2.0.9)

2013-12-09 Thread Sun Yijiang
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

Re: Help needed on strange random error (Guile 2.0.9)

2013-12-06 Thread Sun Yijiang
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

Help needed on strange random error (Guile 2.0.9)

2013-12-06 Thread Sun Yijiang
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

Re: Proper way of making a single-pointer smob

2013-05-30 Thread Sun Yijiang
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 >>

Proper way of making a single-pointer smob

2013-05-29 Thread Sun Yijiang
(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