search for: rb_respond_to

Displaying 9 results from an estimated 9 matches for "rb_respond_to".

2005 Nov 26
1
Another patch of win32-service for nice startup.
...sleep(10); + // Create Thread for service main + hThread = CreateThread(NULL,0,ThreadProc,0,0,&ThreadId); + if(hThread == INVALID_HANDLE_VALUE){ + strcpy(error,ErrorDescription(GetLastError())); + ErrorStopService(); + rb_raise(cDaemonError,error); + } + + if(rb_respond_to(self,rb_intern("service_init"))){ + rb_funcall(self,rb_intern("service_init"),0); } + SetEvent(hStartEvent); + // Call service_main method if(rb_respond_to(self,rb_intern("service_main"))){ rb_funcall(self,rb_intern("service_main&quot...
2006 Dec 07
0
Fwd: win32-service problems with patch
...- EventHookHash = rb_hash_new(); - - thread_group = rb_class_new_instance(0, 0, - rb_const_get(rb_cObject, rb_intern("ThreadGroup"))); return Data_Wrap_Struct(klass, 0, 0, 0); } +static VALUE +daemon_mainloop_protect(VALUE self) +{ + // Call service_main method + if(rb_respond_to(self,rb_intern("service_main"))){ + rb_funcall(self,rb_intern("service_main"),0); + } + + return self; +} + +static VALUE +daemon_mainloop_ensure(VALUE self) +{ + int i; + + // signal both the ruby thread and service_main thread to terminate + SetEvent(hStop...
2008 Feb 06
0
[ wxruby-Bugs-17827 ] Crash when closing Dialog in bigdemo.rb
...x000da18c in rb_eval_string_wrap () #16 0x000dad6a in rb_eval_string_wrap () #17 0x000d80da in rb_eval_string_wrap () #18 0x000de178 in rb_thread_trap_eval () #19 0x000de7e6 in rb_thread_trap_eval () #20 0x000da18c in rb_eval_string_wrap () #21 0x000dad6a in rb_eval_string_wrap () #22 0x000db7ed in rb_respond_to () #23 0x000db8d6 in rb_funcall () #24 0x010ab236 in wxRbCallback::EventThunker () at string.h:690 #25 0x0139fbc3 in wxAppConsole::HandleEvent (this=0x3ad2d0, handler=0x833200, func={__pfn = 0x10ab18c <wxRbCallback::EventThunker(wxEvent&)>, __delta = 0}, event=@0xbfffdf24) at ../src/commo...
2008 Jan 08
28
1.9.3 release, rakefile
Hi I''d like to put out a 1.9.3 release perhaps later this week/weekend. If you have a chance to test the build and samples esp with latest rubygems, please do. There are still some bugs on the list, and samples to do, but this should address all the build/install probs that have come up. And it would be good to get some testing and feedback on some of the new classes. A note on the
2007 Nov 24
5
Service.start arguments failing or causing segfault
Hi, Unless I''m mistaken the final arguments to Service.start should be passed to the Daemon''s service_main method. Correct? I modified the Service.start method (now in CVS) to look something like this: def self.start(service, host=nil, *args) ... num_args = args.length if args.empty? args = nil else args.unshift(service) # Necessary?
2005 Nov 11
1
[Fwd: Thanks for win32-service]
Nice. :) -------------- next part -------------- An embedded message was scrubbed... From: Jamey Cribbs <cribbsj at oakwood.org> Subject: Thanks for win32-service Date: Fri, 11 Nov 2005 11:33:13 -0500 Size: 2505 Url: http://rubyforge.org/pipermail/win32utils-devel/attachments/20051111/5b46cd4f/Thanksforwin32-service.eml
2005 Nov 23
0
Some code change suggestions of thenwin32-service package
...; thenwin32-service package > > > Hi, > > I''d like to suggest some code modifications and tests. > > In service.c > line # 50 : Commet out 1 line > // SetTheServiceStatus(SERVICE_RUNNING, NO_ERROR, 0, 0); > > line # 260 : Insert 4 lines > if(rb_respond_to(self,rb_intern("service_init"))){ > rb_funcall(self,rb_intern("service_init"),0); > } > SetTheServiceStatus(SERVICE_RUNNING, NO_ERROR, 0, 0); > > In Ruby source > Insert ''service_init'' method for initialization > > I t...
2007 Jun 28
0
[1092] trunk/wxruby2/swig/classes/App.i: Pass correctly typed Events into filter_event, if defined (bug 10797);
...p;nbsp&nbsp&nbsp&nbsp&nbsp// Just proceed if no ruby filter_event method is defined in App class +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// filter_event_sym defined above +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( ! rb_respond_to(rb_self, filter_event_sym) ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp { return -1; } +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// else wrap the event and pass into that method +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&a...
2008 Jan 21
0
Wx::GenericDirCtrl Segfault Crash
...om /usr/lib/libruby.so.1.8 #15 0xb7e4dbd2 in rb_hash_foreach () from /usr/lib/libruby.so.1.8 #16 0xb7e2ad7e in rb_provide () from /usr/lib/libruby.so.1.8 #17 0xb7e32ab2 in rb_iter_break () from /usr/lib/libruby.so.1.8 #18 0xb7e33838 in rb_iter_break () from /usr/lib/libruby.so.1.8 #19 0xb7e33e30 in rb_respond_to () from /usr/lib/libruby.so.1.8 #20 0xb7e33fb0 in rb_funcall () from /usr/lib/libruby.so.1.8 #21 0xb7e24e23 in rb_each () from /usr/lib/libruby.so.1.8 #22 0xb7e2fd01 in rb_iterate () from /usr/lib/libruby.so.1.8 #23 0xb77007a2 in wxRubyApp::mark_wxRubyApp () from /usr/lib/ruby/site_ruby/1.8/i586...