[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

bug on Windows version 1.8.4?

rick

4/28/2006 2:03:00 PM

I posted this to Ruby Forums, but did not get an answer, so I thought
I'd try comp.lang.ruby. If anyone can offer some insight into this,
please let me know.

------------------

require 'open-uri'
#~ When I require all three of the following modules
require 'fileutils'
require 'tempfile'
require 'win32/taskscheduler'

#~ I get this error on Windows 2003 SP1:
#~ This application has requested the Runtime to terminate it in an
unusual way.
#~ Please contact the application's support team for more information.
#~ c:/ruby/lib/ruby/1.8/net/protocol.rb:90: [BUG] Segmentation fault
#~ ruby 1.8.4 (2005-12-24) [i386-mswin32]

#~ When I comment out any one of the three modules, it works fine.
#~ Is this a bug or am I doing something wrong?

def read_a_webpage
#~ Happens with 'Kernel.open' or just 'open'
page = Kernel.open('http://google...).read
puts page
end