search for: rb_cobject

Displaying 11 results from an estimated 11 matches for "rb_cobject".

2006 Dec 26
7
Rubygems 0.9.0.8 and Fastthread problem
Heya Folks- This is mainly for Zed and Mentalguy. I have been playing with the new release of rubygems 0.9.0.8 and I have a major problem with the requirement that fastthread needs to be required before thread. Just requiring rubygems and then requiring fastthread right after that will throw the error: ez _blog $ ruby require ''rubygems'' require
2004 Apr 09
2
Issues with win32-service Daemon
Hi all, I wrote a little echo client to run as a service. I have a couple of problems with this. First, any time I try to define anything in "initialize", the service fails to start. Any idea why? Also, this service runs for a while, then just quits for no reason that I can see. The Event Log merely says, "The Abba service terminated unexpectedly". Any ideas on
2007 Apr 13
0
[961] branches/wxruby2/wxwidgets_282/swig: Move wxDateTime typemap into shared file, map to core Time class instead
...+ VALUE y = INT2NUM($1->GetYear()); + VALUE mon = INT2NUM($1->GetMonth() + 1); + VALUE d = INT2NUM($1->GetDay()); + VALUE h = INT2NUM($1->GetHour()); + VALUE min = INT2NUM($1->GetMinute()); + VALUE s = INT2NUM($1->GetSecond()); + + VALUE cTime = rb_iv_get(rb_cObject, "Time"); + // $result = rb_funcall(cDateTime, rb_intern("new"), 6, y, mon, d, h, min, s); + $result = rb_funcall(cTime, rb_intern("local"), 6, y, mon, d, h, min, s); +} + +// Need to have this to over-ride the default which does not work +%typemap(typecheck) con...
2004 May 08
0
win32-process - mixing Process into Object
...fork() without having to using the Process constant, i.e. fork vs Process.fork. In pure Ruby, you can do this: module Process def fork puts "fork!" end end class Object include Process end fork # -> "fork!" In the process.c file I tried rb_include_module(rb_cObject,rb_mProcess) at the end of the Init() function, but it didn''t seem to work. Any ideas on how we can accomplish this? Regards, Dan
2004 Oct 23
0
win32-ipc, with blocks (code review please)
...return INT2NUM(-1); } else if(dwWait == WAIT_TIMEOUT){ return INT2NUM(0); } else{ return Qnil; } } void Init_ipc() { VALUE mWin32, cIpc; /* Modules and Classes */ mWin32 = rb_define_module("Win32"); cIpc = rb_define_class_under(mWin32, "Ipc", rb_cObject); cIpcError = rb_define_class_under(mWin32,"IpcError",rb_eStandardError); // IPC class and instance methods rb_define_alloc_func(cIpc,ipc_allocate); rb_define_singleton_method(cIpc,"wait_any",ipc_wait_any,-1); rb_define_singleton_method(cIpc,"wait_all",...
2007 Jun 25
0
[1072] trunk/wxruby2/swig/shared/datetime.i: Add typemap for DateTime::WeekDay; plug mem leak with wxDateTime arg
...Month() + 1); </span><span class="lines">@@ -29,11 +31,14 @@ </span><span class="cx"> VALUE s = INT2NUM($1->GetSecond()); </span><span class="cx"> </span><span class="cx"> VALUE cTime = rb_iv_get(rb_cObject, "Time"); </span><del>- // $result = rb_funcall(cDateTime, rb_intern("new"), 6, y, mon, d, h, min, s); </del><ins>+ </ins><span class="cx"> $result = rb_funcall(cTime, rb_intern("local"), 6, y, mon, d, h, min, s); &l...
2006 Apr 28
3
NoMemoryError Oracle
Hello, I''m trying to run rails on a Solaris 10 box with Ruby/OCI8, but I''m getting the following errors when trying to start up. # script/server => Booting WEBrick... /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/servers/ webrick.rb:49:in `[]='': failed to allocate memory (NoMemoryError) from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/
2006 Aug 15
5
Ferret Segmentation Faults
Hi, I am getting a number of segmentation faults using Ferret 0.9.5, Fedora Core 5 and Ruby 1.8.4 I installed it with the recommended gem install ferret and example segmentation fault creation line would be as follows: @records = FerretConfig::INDEX.search("address_line_2:\"Dumbarton\"") I am also using acts_as_ferret and rails 1.15 but think this is an issue with
2006 Dec 07
0
Fwd: win32-service problems with patch
...r); + // no service to step, no service handle, no ruby + // exceptions, just terminate thread + return 1; } return 0; } static VALUE daemon_allocate(VALUE klass){ - 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&quot...
2013 May 16
1
support remotely mounting disk images in p2v
Figure I'd share the latest revision to p2v I had regarding $subject. The patch now applies against HEAD and compiles fine. I was able to update the package on the client and run virt-p2v, though have yet to do a full end-to-end verification Most likely a little more work is needed to tidy up some edge cases and fully flush things out, but the majority of the work should be in place. On the
2004 Jul 31
3
Bug in new_work_item
Hi all, Windows 2000 Ruby 1.8.2 R7 VC++ 6.0 I noticed that if I try to call new_work_item and give the task a name that already exists, I get a segfault: C:\eclipse\workspace\win32-taskscheduler>ruby test.rb "0.1.0" test.rb:22:in `new_work_item'': NewWorkItem() function failed (Win32::TaskSchedul erError) from test.rb:22 test.rb:22: [BUG] Segmentation fault ruby