Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > WxRuby GridCellChoiceEditor Segfault

Reply
Thread Tools

WxRuby GridCellChoiceEditor Segfault

 
 
Glen Holcomb
Guest
Posts: n/a
 
      07-29-2008
[Note: parts of this message were removed to make it a legal post.]

Does anyone have a specific experience with WxRuby's GridCellChoiceEditor
causing a segfault? I'm sure it's something simple I'm doing wrong but have
no idea how to fix it.

Here is the code that is causing the segfault:

def get_attr(row, col, attr_kind)
attr = Wx::GridCellAttr.new

if @db_table == "computers" and col == 4
attr.set_editor(Wx::GridCellChoiceEditor.new(["CAD", "GIS", "CMT"]))
end

attr
end

This is simplier than what I need it to do but I thought the more
complicated code might be at fault at first. The problem is when I try to
edit one of the GridCellChoiceEditor cells it briefly renders the drop down
menu then immediately goes back to looking like a normal grid cell. If you
then click anywhere in the application it produces a segfault.

C:\Documents and Settings\Administrator\My Documents\Ruby Scripts>ruby
circadia-
wx5.rb
circadia-wx5.rb:661: [BUG] Segmentation fault
ruby 1.8.6 (2007-09-24) [i386-mswin32]


This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.

Unfortunately I'm stuck in Windows XP for this one so there isn't much I can
do about the segfault, at least as far as I know.

Thanks,
Glen

--
"Hey brother Christian with your high and mighty errand, Your actions speak
so loud, I can't hear a word you're saying."

-Greg Graffin (Bad Religion)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
invoking a segfault within a segfault handler - is this undefinedbehavior? Andrey Vul C Programming 8 07-30-2010 02:14 PM
wxruby and trayicon error and where to learn more about wxruby? kazaam Ruby 2 08-23-2007 10:20 AM
wxRuby platforms Daniel Carrera Ruby 0 08-08-2003 05:56 PM
wxruby.org wiki error gabriele renzi Ruby 0 07-01-2003 09:35 PM
wxRuby License Luke A. Guest Ruby 0 06-30-2003 07:33 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57