From: William Djaja Tjokroaminata Date: 2002-08-05T22:38:52+09:00 Subject: Re: How to Load Script from a C Extension? Hi, My environment is ruby -v : ruby 1.6.7 (2002-03-01) [i686-linux] uname -a: Linux 2.4.8-26mdk #1 Sun Sep 23 17:06:39 CEST 2001 i686 unknown Before I try to put the code fragment, what is exactly the second argument in "rb_load (value, int)"? Can I simply set the int to zero? Also, what is the third argument in "rb_load_protect (value, int, int*)"? For your information, in my case the sequence of execution is like this. A script is run in Ruby, such as "ruby my_script.rb". my_script_rb has "require 'my_extension'". my_extension.c has "rb_load" inside its "Init_xxx" function. Thanks. Regards, Bill =========================================================================== nobu.nokada@softhome.net wrote: > Could you show me the code fragment and backtrace? And what's > your environment; platform, ruby version and so on? >> (At least, "rb_load" is really the correct function that I need?) > Yes. > -- > Nobu Nakada