search for: wxrubyapp

Displaying 20 results from an estimated 27 matches for "wxrubyapp".

Did you mean: rubyapp
2007 May 21
0
[1022] trunk/wxruby2/swig/classes/App.i: Memory mgmt: use Wx::App to mark still-alive Windows, set up Wx::THE_APP const
...t;> { </span><span class="cx"> </span><span class="cx"> public: </span><del>- static VALUE app_ptr; </del><span class="cx"> </span><span class="cx"> </span><del>- virtual ~wxRubyApp() - { </del><ins>+ virtual ~wxRubyApp() + { </ins><span class="cx"> #ifdef __WXDEBUG__ </span><del>- printf("~wxRubyApp\n"); </del><ins>+&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspprintf...
2005 Nov 14
3
Error when building on OSX 10.4/wxWidgets 2.7
I''ve installed ruby 1.8.3, wxWidgets 2.6-cvs, and swig 1.3.27. When running rake here''s the error I get: src/App.cpp:1419: error: ''CreateLogTarget'' is not a member of ''wxRubyApp''src/App.cpp: In function ''VALUE _wrap_App_CreateLogTarget(int, VALUE*, VALUE)'':src/App.cpp:1612: error: ''class wxRubyApp'' has no member named ''CreateLogTarget''rake aborted!Command failed with status (1): [g++ -c -I/Users/arthur/wxWidget...
2007 Jun 28
0
[1092] trunk/wxruby2/swig/classes/App.i: Pass correctly typed Events into filter_event, if defined (bug 10797);
...lt;span class="cx"> extern swig_class cWxEvent; </span><span class="cx"> extern "C" void Init_wxRubyStockObjects(); </span><span class="cx"> </span><ins>+// Pre-fetched id because it''s called very frequently in wxRubyApp::FilterEvent +static VALUE filter_event_sym = rb_intern("filter_event"); </ins><span class="cx"> </span><span class="cx"> class wxRubyApp : public wxApp </span><span class="cx"> { </span><span class="lines&qu...
2007 Jul 21
0
[1135] trunk/wxruby2/swig/mark_free_impl.i: Convert from DOS to Unix newlines
...the C++ object from the ruby VALUE but doesn''t delete -// it because it is still needed and will be managed by WxWidgets. -void GcNullFreeFunc(void *ptr) -{ - SWIG_RubyRemoveTracking(ptr); -} - -// Tests if the window has been signalled as destroyed by a -// WindowDestroyEvent handled by wxRubyApp -bool GC_IsWindowDeleted(void *ptr) -{ - // If objects have been ''unlinked'' then DATA_PTR = 0 - if ( ! ptr ) return true; - VALUE rb_win = SWIG_RubyInstanceFor(ptr); - if ( rb_ivar_defined(rb_win, wx_destroyed_sym ) ) -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&amp...
2008 Jan 21
0
Wx::GenericDirCtrl Segfault Crash
...But the event doesn''t fire), and if I start scrolling through the list, it''ll segfault. I ran GDB on it, and came up with the backtrace log, showing that it''s crashing in the middle of DoGCMarkItemData(), from RecurseOverTreeIds(), and RecurseFromRoot(), and finally from wxRubyApp::mark_iterate(). Here''s the backtrace log, hope it helps: [eumario at localhost wxRIDE]$ gdb --args ruby -llib wxRIDE.rb GNU gdb 6.3-9pclos2007 (PCLinuxOS release 2007) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you...
2007 Jul 21
0
[1127] trunk/wxruby2: Move shared C++ GC functions into separate file included into wx.i
...the C++ object from the ruby VALUE but doesn''t delete +// it because it is still needed and will be managed by WxWidgets. +void GcNullFreeFunc(void *ptr) +{ + SWIG_RubyRemoveTracking(ptr); +} + +// Tests if the window has been signalled as destroyed by a +// WindowDestroyEvent handled by wxRubyApp +bool GC_IsWindowDeleted(void *ptr) +{ + VALUE rb_win = SWIG_RubyInstanceFor(ptr); + if ( rb_ivar_defined(rb_win, wx_destroyed_sym ) ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn true; + else +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&amp...
2006 Oct 23
0
[712] trunk/wxruby2/swig/classes/App.i: Removed unneeded debugging output & deprecated method (Alex Fenton)
...sp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn result; -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp} - - </del><span class="cx"> }; </span><span class="cx"> </span><span class="cx"> VALUE wxRubyApp::app_ptr = Qnil; </span><span class="lines">@@ -158,7 +148,6 @@ </span><span class="cx"> public: </span><span class="cx"> wxRubyApp() ; </span><span class="cx"> virtual ~wxApp() ; </span><del>-...
2007 Apr 03
0
[941] branches/wxruby2/wxwidgets_282/swig/classes/App.i: Avoid segfault when exiting with Ruby exception rather than end of main_loop
...nQueryEndSession; </span><span class="cx"> %ignore ProcessMessage; </span><span class="lines">@@ -20,6 +21,11 @@ </span><span class="cx"> #////////////////////////////////// </span><span class="cx"> %rename(App) wxRubyApp; </span><span class="cx"> </span><ins>+// Prevent the App being destroyed prematurely when Ruby exits down with +// an exception. Otherwise GC destroys the C++ object, which can still +// be needed for final WxWidgets events. +GC_NEVER(wxRubyApp); + </ins>&l...
2007 May 21
0
[1025] trunk/wxruby2/swig: Use Wx::THE_APP constant as global reference to App (as per WxWidgets);
...nbsp2007-05-21 18:39:11 UTC (rev 1024) +++ trunk/wxruby2/swig/Functions.i&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2007-05-21 18:40:07 UTC (rev 1025) </span><span class="lines">@@ -20,7 +20,7 @@ </span><span class="cx"> class wxRubyApp </span><span class="cx"> { </span><span class="cx"> public: </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspstatic VALUE app_ptr; </del><ins>+ </ins><span class="cx"> }; &l...
2007 Jul 05
0
[1109] trunk/wxruby2/swig: Move marking of MenuBar from direct %markfunc to via mark_wxFrame, so
...extern void GC_SetWindowDeleted(void*); </ins><span class="cx"> extern "C" void Init_wxRubyStockObjects(); </span><span class="cx"> </span><span class="cx"> // Pre-fetched id because it''s called very frequently in wxRubyApp::FilterEvent </span><span class="lines">@@ -62,11 +63,7 @@ </span><span class="cx"> void OnWindowDestroy(wxWindowDestroyEvent &event) </span><span class="cx"> { </span><span class="cx"> &nbsp&nb...
2006 Aug 23
4
building wxruby2 from cvs (gentoo)
...led a new swig version with ruby support #edited /etc/portage/package.keyword #and added dev-lang/swig #edit /etc/portage/package.use #added dev-lang/swig ruby The second point where it failed was here src/App.cpp:1622:21: wx/init.h: No such file or directory src/App.cpp: In member function `bool wxRubyApp::Initialize(int&, wxChar**)'': src/App.cpp:1742: error: no matching function for call to `wxRubyApp::Initialize (int&, wxChar**&)'' /usr/include/wx/gtk/app.h:57: note: candidates are: static bool wxApp::Initializ e() rake aborted! Command failed with status (1): [c++ -c...
2007 Mar 19
0
[898] branches/wxruby2/wxwidgets_282/swig/classes/App.i: Fix init of stock objects for Wx2.8 - was causing infinite loop +crash on OS X
...p;nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp Init_wxRubyStockObjects(); - - return result; </del><ins>+ Init_wxRubyStockObjects(); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp VALUE result = rb_funcall(wxRubyApp::app_ptr, rb_intern("on_init"), 0, NULL); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp if ( result == Qfalse || result == Qnil ) { +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp...
2006 Oct 25
0
[718] trunk/wxruby2/swig/classes/App.i: Put back Initialize function
...sp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn result; +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp} + + </ins><span class="cx"> }; </span><span class="cx"> </span><span class="cx"> VALUE wxRubyApp::app_ptr = Qnil; </span></span></pre> </div> </div> </body> </html>
2007 Jan 03
0
[824] trunk/wxruby2/swig/classes/App.i: Remove some ifdefs for old unstable versions of WxWidgets
...; int main_loop(); </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp </span><span class="cx"> }; </span><del>- -%extend wxRubyApp { - -} </del></span></pre> </div> </div> </body> </html>
2008 Feb 06
0
[ wxruby-Bugs-17827 ] Crash when closing Dialog in bigdemo.rb
...mmon/appcmn.cpp:312 #71 0x014df9c1 in wxAppBase::OnRun (this=0x3ad2d0) at ../src/common/appcmn.cpp:367 #72 0x013db917 in wxEntry (argc=@0x1b74cb8, argv=0x3ad480) at ../src/common/init.cpp:456 #73 0x013db9d6 in wxEntry (argc=@0x1b58e1c, argv=0x1b58e14) at ../src/common/init.cpp:468 #74 0x01008760 in wxRubyApp::main_loop () at app.h:220 #75 0x01006e42 in _wrap_App_main_loop () at string.h:242 #76 0x000d1057 in rb_with_disable_interrupt () #77 0x000da18c in rb_eval_string_wrap () #78 0x000dad6a in rb_eval_string_wrap () #79 0x000d80da in rb_eval_string_wrap () #80 0x000e706e in rb_load_protect () #81 0x00...
2007 Jul 22
0
[1140] trunk/wxruby2/swig/mark_free_impl.i: Remove instance variable marking of deleted Wx Windows because it''s redundant
...x"> else </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn false; </span><span class="lines">@@ -35,13 +31,8 @@ </span><span class="cx"> // WindowDestroyEvent handled by wxRubyApp </span><span class="cx"> void GC_SetWindowDeleted(void *ptr) </span><span class="cx"> { </span><del>- VALUE rb_win = SWIG_RubyInstanceFor(ptr); - if ( rb_win != Qnil ) -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp...
2007 Jul 21
0
[1134] trunk/wxruby2/swig/mark_free_impl.i: When window is deleted, unhook ruby obj from DATA_PTR to avoid MSW crashes
...1133) +++ trunk/wxruby2/swig/mark_free_impl.i&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2007-07-21 15:51:00 UTC (rev 1134) </span><span class="lines">@@ -22,6 +22,8 @@ </span><span class="cx"> // WindowDestroyEvent handled by wxRubyApp </span><span class="cx"> bool GC_IsWindowDeleted(void *ptr) </span><span class="cx"> { </span><ins>+ // If objects have been ''unlinked'' then DATA_PTR = 0 + if ( ! ptr ) return true; </ins><span class="cx"...
2007 Jan 05
0
[826] trunk/wxruby2/swig: Move RubyStockObjects back to App.i to avoid lots of error msg on GTK
...ot;cx"> </span><span class="cx"> extern swig_class cWxEvtHandler; </span><ins>+extern "C" void Init_wxRubyStockObjects(); </ins><span class="cx"> </span><ins>+ </ins><span class="cx"> class wxRubyApp : public wxApp </span><span class="cx"> { </span><span class="cx"> </span><span class="lines">@@ -82,11 +84,17 @@ </span><span class="cx"> #ifdef __WXDEBUG__&nbsp&nbsp&nbsp&nbsp&nbsp&amp...
2006 Dec 26
0
[804] trunk/wxruby2/swig: Initialise stock colours (eg Wx::RED), pens and brushes when wxruby2 is
...xEvtHandler; </span><span class="cx"> </span><del>- -/////////////////////////////////////////////////// -extern "C" void Init_wxRubyStockObjects(); -extern "C" void Init_wxRubyEventTypes(); - </del><span class="cx"> class wxRubyApp : public wxApp </span><span class="cx"> { </span><span class="cx"> </span><span class="lines">@@ -99,12 +92,6 @@ </span><span class="cx"> #ifdef __WXDEBUG__&nbsp&nbsp&nbsp&nbsp&nbsp&...
2008 Feb 17
15
A bug in wxRuby. Segmentation fault in random situations.
Hello, I wrote an application in wxRuby: ruby 1.8.6 wxruby 1.9.4 installed from gem windows xp sp2 After several minutes of running it crashes with the following error: "c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: [BUG] Segmentation fault ruby 1.8.6 (2007-03-13) [i386-mswin32] This application has requested the Runtime to terminate it in an unusual way. Please contact