# Re: win32/taskscheduler : Segmentation fault error

**URL:** <https://www.ruby-forum.com/t/re-win32-taskscheduler-segmentation-fault-error/87887>\
**Category:** Ruby\
**Created:** [March 27, 2006, 8:32pm UTC](https://www.ruby-forum.com/t/re-win32-taskscheduler-segmentation-fault-error/87887 "2006-03-27T20:32:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [March 27, 2006, 8:32pm UTC](https://www.ruby-forum.com/t/re-win32-taskscheduler-segmentation-fault-error/87887/1 "2006-03-27T20:32:39Z")

</div>

> > To: ruby-talk ML  
> > I get the following error :  
> > Note that I have the same error under ruby 1.8.4  
> > 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

---

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [March 27, 2006, 9:39pm UTC](https://www.ruby-forum.com/t/re-win32-taskscheduler-segmentation-fault-error/87887/2 "2006-03-27T21:39:07Z")

</div>

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
