From: ts Date: 2006-07-27T17:35:05+09:00 Subject: Re: Embedded socket error >>>>> "N" == Nathan Whitney writes: N> ruby_init(); N> ruby_init_loadpath(); N> ruby_script("embedded"); N> rb_load_file( "embr.rb" ); N> ruby_run(); N> Embed\rubyEmbed>Debug\rubyEmbed.exe N> /socket.so: [BUG] Segmentation fault N> ruby 1.8.2 (2004-12-25) [i386-mswin32] it's normal. When you write an embedded application, you have the responsibility to protect your application against the error that ruby can raise. In your case, rb_load_file() can raise an exception (file not found, ...) and it must be called inside a call to rb_protect() to give you the possibility to test the error. It's also best if you use a more recent ruby. -- Guy Decoux