search for: on_assert

Displaying 7 results from an estimated 7 matches for "on_assert".

Did you mean: i_assert
2006 Aug 17
0
App#on_assert, wxDEBUG
Hi all, I just checked in support for overriding App#on_assert. Mainly because I was really tired of the "looping crash" I have mentioned before, which happens on my system whenever an assert is caught by the default handler built into wx. Separate topic: wxRuby does some cool diagnostics when wxDEBUG is defined. I''m not sure we want to shi...
2007 Mar 31
0
[934] branches/wxruby2/wxwidgets_282: Rename OnAssert to OnAssertFailure, reflecting wx 2.8 API
...bsp2007-03-31 15:26:51 UTC (rev 934) </span><span class="lines">@@ -257,28 +257,23 @@ </span><span class="cx"> </span><span class="cx"> </span><span class="cx"> </span><del>-h3(#App_onassert). App#on_assert </del><ins>+h3(#App_onassert). App#on_assert_failure </ins><span class="cx"> </span><del>- *on_assert*(%(arg-type)Char% file, %(arg-type)Integer% line, %(arg-type)Char% cond, </del><ins>+ *on_assert_failure*(%(arg-type)Char% file, %(a...
2007 Jan 04
3
grid control example doesn''t work on osx.4
...e super basic frame example worked but the simple grid tutorial bombs with the following message: ------ [WhiteGhost:~/tmp/wxStff] hjw$ ruby ./grid.rb /usr/local/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.38-i686- darwin8.4.1/lib/wx/classes/app.rb:10: warning: method redefined; discarding old on_assert ./grid.rb:10: [BUG] Bus Error ruby 1.8.4 (2005-12-24) [i686-darwin8.8.3] Abort trap --------------- The code is below, line 10 is the call to tgrid = Wx::Grid.new(frame, -1), what the heck am I missing? The bigdemo works (although it usually crashes after I''ve run a three or four of...
2006 Oct 22
0
[704] trunk/wxruby2/lib: Auto-load classes from lib/wx/classes; implement Window#paint in Ruby
...bsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2006-10-22 00:45:22 UTC (rev 704) </span><span class="lines">@@ -0,0 +1,10 @@ </span><ins>+# Copyright 2004-2006 by Kevin Smith +# released under the MIT-style wxruby2 license + +class Wx::App + def on_assert(file, line, condition, message) + warn "ASSERT: #{file} #{line}" + warn condition + raise message + end +end </ins></span></pre></div> <a id="trunkwxruby2libwxclasseswindowrb"></a> <div class="addfile"><h4>Added...
2007 Mar 30
1
m_event.m_propagationLevel > 0 errors
On the controls sample, dialogs sample and other I am getting the following when running a debug build of the latest wxwidgets_282 branch: [Debug] 13:02:16: ../include/wx/event.h(454): assert "m_event.m_propagationLevel > 0" failed in wxPropagateOnce(): shouldn''t be used unless ShouldPropagate()! ./controls.rb:1132: [BUG] Bus Error Is anyone else seeing these errors? I am
2006 Sep 17
1
run.rb
This is a first stab at a run.rb file that will let you run a sample in the bigdemo directory by itself. You have to add the following to the bottom of every sample file: if __FILE__ == $0 load "run.rb" run(File.basename($0)) end Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org
2006 Nov 23
0
[750] trunk/wxruby2/lib/wx/classes/app.rb: Show messages generated by assertion failures, but don''t raise an
...se messages are only generated by a DEBUG build of + # WxRuby. Such messages usually indicate that the API is being used + # incorrectly; the file/line reference points to the place in the + # WxWidgets source code where the assertion was made. </ins><span class="cx"> def on_assert(file, line, condition, message) </span><del>- warn "ASSERT: #{file} #{line}" - warn condition - raise message </del><ins>+ warn "Wx WARNING: #{message} (#{file}:#{line})" </ins><span class="cx"> end </span><spa...