search for: rb_hash_aref

Displaying 10 results from an estimated 10 matches for "rb_hash_aref".

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
2006 Apr 14
3
[ win32utils-Bugs-4101 ] create hash param
Bugs item #4101, was opened at 2006-04-14 11:27 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=4101&group_id=85 Category: win32-process Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: create hash param Initial Comment: hi, problem with process, when I do pid = Process.create(
2004 Mar 11
5
win32-etc-0.2.2 testing wanted
I''ve commited code for win32-etc 0.2.2, which adds the configure_user and configure_group methods. Testing appreciated. On my home system, I can''t get configure_user to work, but I haven''t any real idea why it fails. The configure_group method seems to work fine, however. Dan _________________________________________________________________ Fast. Reliable. Get
2010 Jan 09
8
X-Forwarded-Proto / X_FORWARDED_PROTO
Eric, think I came across an issue with the parser in unicorn, with a request (due to 2 layers of nginx proxying) coming across with both a X_FORWARDED_PROTO and a X-Forwarded-Proto header. From the socket (in HttpRequest) - we get: X_FORWARDED_PROTO: http X-Forwarded-Proto: https which is parsed to HTTP_X_FORWARDED_PROTO"=>"http,https There was a passenger ticket that
2007 Dec 27
4
build problems, part III, and runtime problems, part I
...No more unresolved symbols. What gives? Should the wxruby code have been built using wchar_t, and if so, how? However, now I get the following: % ruby -rubygems nothing.rb /home/rwa/linux-packages/ruby-1.8.6/lib/ruby/site_ruby/1.8/i686-linux/wxruby2.so: [BUG] Segmentation fault the crash is in rb_hash_aref. I saw that I was not the only one to run into this from recent mailing list discussion. The issue appears to be that swig_ruby_trackings has a bogus value. In my case it always happens to be 4. It appears it is supposed to point to valid storage. The relevant function appears to be this one:...
2006 Dec 07
0
Fwd: win32-service problems with patch
...// if there is a code, create a ruby thread to deal with it - // this might be over engineering the solution, but I don''t - // want to block Service_Ctrl longer than necessary and the - // critical section will block it. - VALUE val = rb_hash_aref(EventHookHash, INT2NUM(waiting_control_code)); - if(val!=Qnil) { - VALUE thread = rb_thread_create(Service_Event_Dispatch, (void*) val); - rb_funcall(thread_group, cAdd, 1, thread); + if (waiting_control_code != SERVICE_CONTROL_STOP) { +...
2010 Jun 02
8
Read error: #<TypeError: can't modify frozen string> raised from HttpParser
Hey guys, Started running unicorn in a production server like two weeks ago. It''s been running smoothly, but looking at the logs found 44 exceptions like this: E, [2010-06-02T16:17:15.117071 #22680] ERROR -- : Read error: #<TypeError: can''t modify frozen string> E, [2010-06-02T16:17:15.117270 #22680] ERROR -- :
2011 Jan 05
0
Fwd: Review of libguestfs ruby bindings
...n.c:libvirt_dom_memory_peek() 5) The way that hash lookups are done are a little complicated. For instance, ruby_guestfs_add_drive_opts() uses: VALUE v; v = rb_hash_lookup (optargsv, ID2SYM (rb_intern ("readonly"))); to get at the hash symbol. In ruby-libvirt I tend to do: v = rb_hash_aref(optsargv, rb_str_new2("readonly")); That being said, your way may actually be faster since you aren't allocating a new object. Minor in any case, they both work. 6) In ruby_guestfs_download() and elsewhere, there is code like: Check_Type (remotefilenamev, T_STRING); const cha...
2007 May 21
0
[1024] trunk/wxruby2/swig: Memory mgmt: defs and implementation of new memory management; strip
...&GcRubyHash); - GcRubyHash = rb_hash_new(); - } - rb_hash_aset(GcRubyHash, INT2NUM((long)ptr), val); -} - -VALUE GcGetValueFromPtr(void *ptr) -{ - if (GcRubyHash == Qnil) - { - rb_global_variable(&GcRubyHash); - GcRubyHash = rb_hash_new(); - } - return rb_hash_aref(GcRubyHash, INT2NUM((long)ptr)); -} - -void GcMarkDeleted(void *ptr) -{ - DeletedHash[ptr] = true; -} - -bool GcIsDeleted(void *ptr) -{ - if (DeletedHash.find(ptr) == DeletedHash.end()) - return false; - else return true; -} - -void GcFreefunc(void *ptr) -{ - SWIG_RubyUnlinkObjects...
2007 Nov 28
6
Problems installing/running svn-code
Hi, The last couple of days I''ve been trying to get back on the wxRuby-horse however I''ve ran into some problems while compiling/testing the subversion sources. Mind, the 1.9.2 official release works fine. Absolutely no problems whatsoever. The first hurdle was that the rake install target doesn''t work. It fails on rakewx.rb:145. Looking into it I found that