[Win32utils-devel] Re: Bug in new_work_item

win32utils-devel at rubyforge.org win32utils-devel at rubyforge.org
Sun Aug 1 12:18:29 EDT 2004


Park,

I tried your patch, but it now segfaults when I call
TaskScheduler#save:

# test.rb
require "win32/taskscheduler"
include Win32

p TaskScheduler::VERSION

trigger = {
   "start_year" 	=> 2009,
   "start_month" 	=> 4,
   "start_day"   	=> 11,
   "start_hour"	        => 7,
   "start_minute"	=> 14,
   "trigger_type"	=> TaskScheduler::DAILY,
   "type"		=> { "days_interval" => 1 }
}	

ts = TaskScheduler.new
ts.new_work_item("foo",trigger)
ts.application_name = "notepad.exe"
ts.save

# Output
C:\eclipse\workspace\win32-taskscheduler>ruby test.rb
"0.1.0"
test.rb:24: [BUG] Segmentation fault
ruby 1.8.2 (2004-07-29) [i386-mswin32]

abnormal program termination

Where line 24 is "ts.save".  Any ideas?

Dan


		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 


More information about the win32utils-devel mailing list