From: Tobias Grimm Date: 2004-08-23T21:51:45+09:00 Subject: Re: ruby_init causing segfault ts wrote: > No, sorry to say this but the example that you have given is precisely > what you *MUST NOT* write in an embed application. > > Mmm... I thought that this is *exactly* what should be done... calling ruby_init(), loading / evaluating scripts with the *_protect()-functions and running the GC from time to time and then calling ruby_finalize() to clean up (taken from http://metaeditor.sourceforge.net/embed/). So what do you suggest I should do? Documentation about this topic is very rare. What's wrong in the follwoing three lines? ruby_init(); rb_gc(); ruby_finalize(); Tobias