From: Steve Tuckner Date: 2001-03-21T05:03:16+09:00 Subject: [ruby-talk:12978] RE: Embedding ruby in another application quest ion #1 FYI The program test.rb does run (it creates a file and writes some lines into it). >I plan to use Ruby as a scripting language inside of a testing tool that we >use internally. I was following the recipe as on page 187 of the pick-axe book. > >I got it all to link (in VC++ 6.0 on Win NT 4.0) and I call > >ruby_init() >ruby_script("embedded"); >rb_load_file("test.rb"); > >when the program starts > >and then I call > >ruby_run(); > >on a timer. Unfortunately it never returns from the call to ruby_run(). >ruby_run() calls ruby_stop() which calls exit() and viola! the program >exits! > > I am doing something wrong? Am I doing something wrong? > > Steve Steve