similar to: Converting rb_protect + ruby_stop to pure Ruby

Displaying 20 results from an estimated 400 matches similar to: "Converting rb_protect + ruby_stop to pure Ruby"

2007 Mar 21
4
Problem with PaintDC(MSW)
When implementing EVT_PAINT handlers in c++ the PaintDC object is constructed at the beginning of the function, and auto destructed at it''s end, which informs wxwidgets that "invalid regions in the window have been repainted". Under ruby, this is not the case and causes a stream of EVT_PAINT events to be sent to the given window (until one of PaintDC objects is destructed by
2004 Oct 23
0
win32-ipc, with blocks (code review please)
Does this look right? The places to look are wait and wait_for_multiple (which I modified to take the class as an argument, so that I could yield). Dan /**************************************************************************** * ipc.c - source for the win32-ipc package ****************************************************************************/ #include "ruby.h" #include
2004 Mar 13
0
Quick thought on win32-mmap
I suggest getting rid of the hash style arguments fior new() for this package. In this particular case, you already have a class and accessors, so you can just use the yield trick, e.g. rb_yield(self) if rb_block_given_p(). Thus you can do: mm = Mmap.new do |m| m.namespace = file m.swapfile = sfile m.size = 1024 end Looks just as nice, and is a lot less code on the C side of
2006 Oct 22
0
[707] trunk/wxruby2/swig/classes/Window.i: Window-paint method now implemented in Ruby (Alex Fenton)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2006 Apr 20
1
ruby-ldap crashing WEBrick server
We are trying to use Ruby-ldap 0.9.4 with Ruby 1.84 on Rails 1.1.2. All is running on top of Solaris 2.8. The overall setup works fine for doing other things like access an Oracle DB, and displaying items. When it comes to using Ruby-ldap though, it is quite a different matter. We''ve tried using Ruby-ldap within irb, and all seems well. The basic scenario is: conn =
2006 Apr 27
1
Ferret crashing Ruby
I''ve gotten several problems with C ferret crashing ruby. Here''s the stack trace of my latest case: #0 0x00000050 in ?? () #1 0xb74028ab in iw_close (iw=0x8685a40) at index_rw.c:947 #2 0xb7414359 in index_destroy (self=0x829ebc0) at ind.c:89 #3 0xb73f00bc in frt_ind_free (p=0x829ebc0) at r_search.c:1564 #4 0xb7f04dca in rb_gc_call_finalizer_at_exit () from
2007 May 31
0
[1039] trunk/wxruby2/swig/Events.i: Remove some debugging output
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2007 Apr 29
0
[983] branches/wxruby2/wxwidgets_282: Make Window#paint work both inside and outside a paint event handler,
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2008 May 25
9
Segmentation Fault.
Hi there, I am relative new to the wxRuby so please bear with me. I use Ubuntu Hardy Heron 8.04 release. I have installed the wxwidgets C libraries and then did a gem install wxruby The ruby extensions were downloaded and installed correctly. If i do $gem list --local .. wxruby (1.9.7) .. Then I tried to run a simple example "Hello World" as described in the tutorial
2007 Apr 07
0
[ wxruby-Bugs-9930 ] StaticBoxSizer causes segfault on exit
Bugs item #9930, was opened at 2007-04-07 17:48 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=9930&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: StaticBoxSizer causes segfault on exit Initial Comment: If a
2007 Apr 29
0
[ wxruby-Bugs-10438 ] ClientDC segfault on exit
Bugs item #10438, was opened at 2007-04-29 00:15 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=10438&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: ClientDC segfault on exit Initial Comment: If a ClientDC has been
2007 Jan 25
0
[ wxruby-Bugs-8130 ] Crash-on-exit when dialogs have been used
Bugs item #8130, was opened at 2007-01-25 05:22 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=8130&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: Crash-on-exit when dialogs have been used Initial Comment: Sometimes
2007 Jan 26
0
[ wxruby-Bugs-8179 ] Segfaults when Kernel#exit is called
Bugs item #8179, was opened at 2007-01-26 18:03 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=8179&group_id=35 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Nobody (None) Summary: Segfaults when Kernel#exit is called Initial Comment: If there are multiple windows or
2006 Dec 30
0
[ wxruby-Bugs-7503 ] Segfaults on exception, related to sizer
Bugs item #7503, was opened at 2006-12-30 19:28 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=7503&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: Segfaults on exception, related to sizer Initial Comment: In
2006 Nov 21
0
[ wxruby-Bugs-6808 ] Double-free segfault on closing app when BitmapButton has been used
Bugs item #6808, was opened at 2006-11-21 21:41 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=6808&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 2 Submitted By: Alex Fenton (brokentoy) Assigned to: Kevin Smith (qualitycode) Summary: Double-free segfault on closing app when BitmapButton has been used
2008 Mar 05
0
Index Searcher Causes GC Memory Error: "irb: double free or corruption"
My linux Ruby application is using Ferret 0.11.4. I created my own class IndexSearcher to contain the Searcher of multiple directories. If I do not have the searcher.close called, the end of runner/console or runner/server will pop out with system error: *** glibc detected *** irb: double free or corruption (fasttop): 0x0a51d6c0 *** ======= Backtrace: ========= /lib/libc.so.6[0x638ac1]
2011 Jan 05
0
Fwd: Review of libguestfs ruby bindings
Chris helpfully reviewed the libguestfs ruby bindings. His findings are below. Rich. Date: Wed, 5 Jan 2011 16:36:42 -0500 From: Chris Lalancette Subject: Review of libguestfs ruby bindings Hey Rich, What follows is a quick review of the libguestfs ruby bindings. I hope you find it helpful. Overall directory structure - looks reasonable enough. One thing that you *could* do is remove
2007 May 29
0
[1035] trunk/wxruby2/swig/classes/EvtHandler.i: Removed a heap of redundant stuff that''s been #if 0''d for a while
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2007 May 31
0
[1038] trunk/wxruby2/swig/Events.i: Add missing EVT_COMMAND_TREE constants
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2007 Mar 22
0
[910] branches/wxruby2/wxwidgets_282: Moved paint() method back into C++, so DC object is destroyed in timely
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding: