[Win32utils-devel] Problems with custom service and webrick

Daniel Berger djberg96 at gmail.com
Mon May 16 11:26:05 EDT 2005


On 5/15/05, Park Heesob <phasis at nownuri.net> wrote:
> Hi,
> >
> > If you think you could hunt down the cause of that and fix it, that
> > would be great. :)
> >
> I found something :)
> 
> The error is due to line 1576 of service.c:
> EventHookHash = rb_hash_new();
> 
> I guess the EventHookHash is freed during loading 'webrick' or other libraries.
> 
> So, the EventHookHash initialization must be located at Daemon initialization(daemon_allocate function) like this:
> static VALUE daemon_allocate(VALUE klass){
>   EventHookHash = rb_hash_new();
>    return Data_Wrap_Struct(klass, 0, 0, 0);
> }
> 
> In short words, move line 1576 to line 165 of service.c.
> 
> Regards,
> 
> Park Heesob

Thank you very much!

Dan

PS - I meant to CC the devel list before and forgot.



More information about the win32utils-devel mailing list