From: ts Date: 2004-08-23T21:58:45+09:00 Subject: Re: ruby_init causing segfault >>>>> "T" == Tobias Grimm writes: T> Mmm... I thought that this is *exactly* what should be done... calling T> ruby_init(), loading / evaluating T> scripts with the *_protect()-functions and running the GC from time to T> time and then calling ruby_finalize() T> to clean up (taken from http://metaeditor.sourceforge.net/embed/). Sorry but your script is : T> #include T> int main() T> { T> ruby_init(); T> rb_gc(); // causes the segfault T> ruby_finalize(); T> return 0; T> } T> So what do you suggest I should do? The call to rb_gc() is not in a protect function. Guy Decoux