From: Shea Martin Date: 2007-01-25T01:00:08+09:00 Subject: Re: ebedded: calling a C function from script. Here is another one i can't find in the book or online: How do I call a global function (which resides in a script) from C. ruby_init(); ruby_script("embedded"); init_my_ruby_stuff(); rb_load_file( "test.rb" ) ID id = rb_intern( "script_main" ); rb_funcall( rb_cObject, id, 0 ); ruby_finalize(); return 0; But this crashes with an access violation when I run it... am I doing something wrong? ~S