brad
April 28, 2006, 12:11am
1
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
#~ This uses OpenURI
page = open(‘http://google.com/ ’).read
puts page
end
read_a_webpage
brad
April 28, 2006, 1:53am
2
I think using Kernel.open will correct it. Sometimes being more explicit
is good… Let’s all cheer for Python
brad
April 28, 2006, 2:15pm
3
Brad wrote:
I think using Kernel.open will correct it.
Using Kernel.open did not correct this problem. I believe
it is a bug. Should I post this elswhere? Try the code in the original
post. It’s easy to reproduce.
brad
April 28, 2006, 5:16pm
4
Hi,
it is a bug. Should I post this elswhere? Try the code in the original
post. It’s easy to reproduce.
–
Posted via http://www.ruby-forum.com/ .
There was bug in taskscheduer module and fixed in CVS.
Refer to
http://rubyforge.org/pipermail/win32utils-devel/2006-March/000525.html
Try CVS version.
Regards,
Park H.
brad
May 1, 2006, 5:28pm
5
Park H. wrote:
Hi,
it is a bug. Should I post this elswhere? Try the code in the original
post. It’s easy to reproduce.
–
Posted via http://www.ruby-forum.com/ .
There was bug in taskscheduer module and fixed in CVS.
Refer to
http://rubyforge.org/pipermail/win32utils-devel/2006-March/000525.html
Try CVS version.
How do I get the updated .so file? I got the cvs taskscheduler.c,
taskscheduler.h and taskscheduler.rb but I don’t understand how to build
a .so file.
brad
April 28, 2006, 5:58pm
6
Park H. wrote:
Hi,
There was bug in taskscheduer module and fixed in CVS.
Refer to
http://rubyforge.org/pipermail/win32utils-devel/2006-March/000525.html
Try CVS version.
Taskscheduler works fine for me. It’s only when I require like this:
require ‘open-uri’
require ‘fileutils’
require ‘tempfile’
require ‘win32/taskscheduler’
Or like this:
require ‘open-uri’
require ‘fileutils’
#require ‘tempfile’
require ‘win32/taskscheduler’
When I require taskscheduler alone, it works fine.