As Heesob has already discovered (and posted on our mailing list)
there's a bug in taskscheduler.h, line 172, which should be
INT2NUM(TASK_FLAG_RUN_ONLY_IF_LOGGED_ON) - the INT2NUM() was missing.
Regards,
Dan
···
-----Original Message-----
From: Berger, Daniel [mailto:Daniel.Berger@qwest.com]
Sent: Monday, March 27, 2006 7:43 AM
To: ruby-talk ML
Subject: Re: win32/taskscheduler : Segmentation fault error> -----Original Message-----
> From: yeman13 [mailto:dfaroi@gmail.com]
> Sent: Sunday, March 26, 2006 3:19 PM
> To: ruby-talk ML
> Subject: win32/taskscheduler : Segmentation fault error
>
>
> I'm trying to make something like this:
>
> require 'win32/taskscheduler'
> include Win32
>
> puts `xcopy "D:\\ATest A" "D:\\ATest B" /c /d /e /i /h /l /r /y`
>
> I get the following error :
> ------
> [BUG] Segmentation fault
> ruby 1.8.2 (2004-12-25) [i386-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 remove the two firts line, it works.
> Note that I have the same error under ruby 1.8.4
>
> Any idea ?
> Thanks for your help
>
> --
> OS : Windows XP SP2
> Taskscheduler version : 0.0.3
>
> DavidHi David,
I'm not sure what's happening. I'll try to take a look at it
this week.Note that win32-taskscheduler is one of the packages I intend
to rewrite using pure Ruby.Regards,
Dan