From: Steve Tuckner Date: 2003-08-29T07:11:40+09:00 Subject: EXErb This is a multi-part message in MIME format. ------=_NextPart_000_0063_01C36D87.6CCAABE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I have an interest in using EXErb to distribute a windows application. But I have run into a problem right away. The exe created ends up with a segment fault in ruby. I isolated the problem down to a very simple example. hello.rbc ------------------- kcode none corename cui script exetest.rb library socket.so hello.rb --------------------- require "socket" puts "hello" --------------------------------- I run the command (I have copied the ruby 1.8 socket.so into the local directory) exerb hello.rbc hello generates the output: exetest.rb:1: [BUG] Segmentation fault ruby 1.6.8 (2002-12-24) [i586-mswin32] This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. If I comment out the require "socket", it works fine. The example1 in the distribution requires Win32api.so and that works fine. Thanks for any suggestions. Ruby version 1.8, exerb version 2.6.6 Steve Tuckner ------=_NextPart_000_0063_01C36D87.6CCAABE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I = have an interest=20 in using EXErb to distribute a windows application. But I have run into = a=20 problem right away. The exe created ends up with a segment fault in = ruby. I=20 isolated the problem down to a very simple example.
 
hello.rbc=20 -------------------
 
kcode none
corename cui
script exetest.rb<= BR>library socket.so
 
hello.rb=20 ---------------------
 
require=20 "socket"
 
puts=20 "hello"
 
---------------------------------
 
I run = the command (I=20 have copied the ruby 1.8 socket.so into the local = directory)
 
exerb = hello.rbc
hello
 
generates the=20 output:
 
exetest.rb:1: [BUG]=20 Segmentation fault
ruby 1.6.8 (2002-12-24) = [i586-mswin32]
 
This = application has=20 requested the Runtime to terminate it in an unusual way.
Please = contact the=20 application's support team for more information.
 
If I = comment out the=20 require "socket", it works fine. The example1 in the distribution = requires=20 Win32api.so and that works fine. Thanks for any = suggestions.
 
Ruby = version 1.8,=20 exerb version 2.6.6

Steve Tuckner =

------=_NextPart_000_0063_01C36D87.6CCAABE0--