[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: win32/taskscheduler : Segmentation fault error

Berger, Daniel

3/27/2006 6:32:00 PM



> -----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
> >
> > David
>
> Hi 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

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


1 Answer

dfaroi@gmail.com

3/27/2006 7:38:00 PM

0

Thanks Daniel for your reply.

I received Heesob fix by mail.
After recompiling the taskscheduler.so, it works.

Thanks to you and Heesob for your help to this issue.

Sorry for my english, I'm a french guy trying to learn ruby.

Good news for the pure ruby new tasks cheduler.

Very goog job guys with Win32Utils.

Regards,

David
>From Marseille (France)