From: Olivier CARRERE Date: 2001-02-01T02:40:02+09:00 Subject: [ruby-talk:10180] Embedded Ruby problems Hi, I'm trying to embed Ruby into another C++ program, and I'm facing two problems: 1. I'm not sure of what is the sequence to run to start the interpreter, I tried this one with no success : ruby_init(); ruby_script("foo.rb"); // foo.rb only makes a print "hello" ruby_run(); // The program stops while calling it without even printing the 'hello' string 2. The worst problem is that the called script interpreter makes and exit() to stop, wich has the disastrous consequence of stopping my calling program! Is there a function to stop cleanly the ruby interpreter so that I can replace each exit() into ruby's source code and continue my program after a ruby_run() call? Thanks for any clue, - Olivier CARRERE