Displaying 6 results from an estimated 6 matches for "rb_eruntimeerror".
2007 Jun 26
0
[1085] trunk/wxruby2/swig: Add checks and ruby exceptions for two common Wx::Window mistakes leading to
...nt which may be null - but it does
+// not inherit from TopLevelWindow - so special typemap for this class.
+%typemap(check) wxWindow* parent {
+ if ( ! rb_const_defined(mWxruby2, rb_intern("THE_APP") ) )
+        { rb_raise(rb_eRuntimeError,
+                         "Cannot create BusyInfo before App.main_loop has been called");}
+}...
2007 Feb 25
6
Crash occurs where EventMachine.connect is
Hi everyone,
If you subclass EventMachine::Connection and call it outside an
EventMachine::run
event loop, EventMachine crashes! Example:
class Put < EventMachine::Connection
include EventMachine::Deferrable
HOST="localhost"
PORT=8080
def self.request(data)
EventMachine.connect(HOST, PORT, self) {|c|
c.instance_eval { @data = data }
}
end
#
2007 Jul 18
0
[1119] trunk/wxruby2/swig/Functions.i: Avoid erroneous ''parent must not be nil'' errors when using global
...p defined in typemap.i). So override the standard
+// typemap and just check that the App has been started.
+%typemap(check) wxWindow* parent {
+ if ( ! rb_const_defined(mWxruby2, rb_intern("THE_APP") ) )
+        { rb_raise(rb_eRuntimeError,
+                         "Cannot display dialog before App.main_loop has been called");}
+}
+...
2007 Jul 04
0
[1099] trunk/wxruby2/swig/classes/XmlResource.i: Permit Dialogs and Frames with no parents to be created via XRC; add comments
...uld ideally retain
+// it - eg LoadPanel - b/c no way to apply a typemap based on method
+// name in SWIG?)
+%typemap(check) wxWindow* parent {
+ if ( ! rb_const_defined(mWxruby2, rb_intern("THE_APP") ) )
+        { rb_raise(rb_eRuntimeError,
+                         "Cannot load from XRC before App.main_loop has been called");}
+}
&l...
2007 Jun 28
0
[1092] trunk/wxruby2/swig/classes/App.i: Pass correctly typed Events into filter_event, if defined (bug 10797);
...p       int ret_val = FIX2INT(rb_ret_val);
+        if ( ret_val < -1 || ret_val > 1 )
+         { rb_raise(rb_eRuntimeError, "filter_event must return -1, 0, or 1"); }
+
+        return ret_val;
+ }
+
</ins><span class="cx"> // actually implemented in ruby in classes/app.rb
</span><span class="cx">...
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