>>>>> "O" == Olivier CARRERE <olivier / vibes.net> 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