I am running the following code in a C++ app:
int _tmain(int argc, _TCHAR* argv[])
{
NtInitialize(&argc, &argv);
ruby_init();
ruby_init_loadpath();
ruby_script("embedded");
rb_load_file( "embr.rb" );
ruby_run();
return 0;
}
Embed\rubyEmbed>Debug\rubyEmbed.exe
./socket.so: [BUG] Segmentation fault
ruby 1.8.2 (2004-12-25) [i386-mswin32]
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
···
--
Posted via http://www.ruby-forum.com/.