From: ts Date: 2001-02-02T03:31:35+09:00 Subject: [ruby-talk:10226] Re: Embedded Ruby (PART II)- Ruby hackers help wanted :) >>>>> "O" == Olivier CARRERE writes: O> so it would work well (theorically). I replaced those exits with returns O> (and I changed the return value of ruby_run() to int so that it can O> return its error state :) ), and I had good results : Why you don't read the script and then call rb_eval_string_protect(), or rb_eval_string_wrap() (with rb_protect()) You will have only one call to ruby_init() and no call to ruby_run() Guy Decoux