Brad5
(Brad)
27 April 2006 22:12
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
···
--
Posted via http://www.ruby-forum.com/ .
Brad5
(Brad)
27 April 2006 23:53
2
I think using Kernel.open will correct it. Sometimes being more explicit
is good... Let's all cheer for Python
···
--
Posted via http://www.ruby-forum.com/ .
Brad5
(Brad)
28 April 2006 12:16
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.
···
--
Posted via http://www.ruby-forum.com/\ .
Hi,
From: Guest <rtilley@vt.edu>
Reply-To: ruby-talk@ruby-lang.org
To: ruby-talk@ruby-lang.org (ruby-talk ML)
Subject: Re: Possible Ruby Bug?
Date: Fri, 28 Apr 2006 21:16:13 +0900
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.
--
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 Heesob
Brad5
(Brad)
28 April 2006 15:58
5
Park Heesob 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.
···
--
Posted via http://www.ruby-forum.com/\ .
Brad5
(Brad)
1 May 2006 15:28
6
Park Heesob 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.
···
--
Posted via http://www.ruby-forum.com/\ .