# FxRuby FxChoiceBox segfault

**URL:** <https://rubytalk.org/t/fxruby-fxchoicebox-segfault/29720>\
**Category:** ruby-talk\
**Created:** [7 August 2006 15:05 UTC](https://rubytalk.org/t/fxruby-fxchoicebox-segfault/29720 "2006-08-07T15:05:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leslie\_Viljoen1](https://avatars.discourse-cdn.com/v4/letter/l/f1d935/32.png) [@Leslie\_Viljoen1](https://rubytalk.org/u/Leslie_Viljoen1)\
**Post date:** [7 August 2006 15:05 UTC](https://rubytalk.org/t/fxruby-fxchoicebox-segfault/29720/1 "2006-08-07T15:05:05Z")

</div>

Hello!

I am trying the following:

puts FXChoiceBox.ask(@app, 0, "Export to database?",  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"#{exp.devices.length} records accepted, #{exp.rejected} records  
rejected.\n" +  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"Would you like to continue with the export?", nil, ["Yes", "No"])

...and getting:

D:/Work/Workspace/Massage/publish\_to\_hub.rb:277: [BUG] Segmentation fault  
ruby 1.8.4 (2006-04-14) [i386-mswin32]

I'm not sure if this is a bug or not. This is with FxRuby1.6 that  
comes with the latest Ruby one-click installer.

Any ideas?

I am finding the documentation to be a bit lacking in practical  
information. Is there a place on the web where there are more FxRuby  
EXAMPLES than the few that come with FxRuby?

Les

---

<div class="post-metadata">

**Author:** ![Lyle\_Johnson3](https://avatars.discourse-cdn.com/v4/letter/l/c89c15/32.png) [@Lyle\_Johnson3](https://rubytalk.org/u/Lyle_Johnson3)\
**Post date:** [7 August 2006 15:37 UTC](https://rubytalk.org/t/fxruby-fxchoicebox-segfault/29720/2 "2006-08-07T15:37:33Z")

</div>

Looks like a bug, but I can reproduce it on Windows only (not on Mac  
OS X). Anyways, I've filed a bug report on your behalf and hopefully  
we'll get this fixed in the next release.

> **···**
>
> On 8/7/06, Leslie Viljoen \<leslieviljoen@gmail.com\> wrote:
> 
> > I am trying the following:
> > 
> > puts FXChoiceBox.ask(@app, 0, "Export to database?",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"#{exp.devices.length} records accepted, #{exp.rejected} records  
> > rejected.\n" +  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"Would you like to continue with the export?", nil, ["Yes", "No"])
> > 
> > ...and getting:
> > 
> > D:/Work/Workspace/Massage/publish\_to\_hub.rb:277: [BUG] Segmentation fault  
> > ruby 1.8.4 (2006-04-14) [i386-mswin32]
> > 
> > I'm not sure if this is a bug or not. This is with FxRuby1.6 that  
> > comes with the latest Ruby one-click installer.

---

<div class="post-metadata">

**Author:** ![Leslie\_Viljoen1](https://avatars.discourse-cdn.com/v4/letter/l/f1d935/32.png) [@Leslie\_Viljoen1](https://rubytalk.org/u/Leslie_Viljoen1)\
**Post date:** [7 August 2006 15:42 UTC](https://rubytalk.org/t/fxruby-fxchoicebox-segfault/29720/3 "2006-08-07T15:42:59Z")

</div>

Thanks! In the meantime I duplicated what I wanted with a MessageBox.  
I have also started adding some FxRuby snippets to  
programmingishard.com - although I see the original Code Snippets  
([BigBold - Informasi Tentang Bisnis dan Marketing](http://www.bigbold.com/snippets/%5C)) is bigger, so I might start adding  
there.

I think we need examples for as much of FxRuby as possible.

Les

> **···**
>
> On 8/7/06, Lyle Johnson \<lyle.johnson@gmail.com\> wrote:
> 
> > On 8/7/06, Leslie Viljoen \<leslieviljoen@gmail.com\> wrote:
> > 
> > \> I am trying the following:  
> > \>  
> > \> puts FXChoiceBox.ask(@app, 0, "Export to database?",  
> > \> "#{exp.devices.length} records accepted, #{exp.rejected} records  
> > \> rejected.\n" +  
> > \> "Would you like to continue with the export?", nil, ["Yes", "No"])  
> > \>  
> > \> ...and getting:  
> > \>  
> > \> D:/Work/Workspace/Massage/publish\_to\_hub.rb:277: [BUG] Segmentation fault  
> > \> ruby 1.8.4 (2006-04-14) [i386-mswin32]  
> > \>  
> > \> I'm not sure if this is a bug or not. This is with FxRuby1.6 that  
> > \> comes with the latest Ruby one-click installer.
> > 
> > Looks like a bug, but I can reproduce it on Windows only (not on Mac  
> > OS X). Anyways, I've filed a bug report on your behalf and hopefully  
> > we'll get this fixed in the next release.

---

<div class="post-metadata">

**Author:** ![Lyle\_Johnson3](https://avatars.discourse-cdn.com/v4/letter/l/c89c15/32.png) [@Lyle\_Johnson3](https://rubytalk.org/u/Lyle_Johnson3)\
**Post date:** [7 August 2006 15:56 UTC](https://rubytalk.org/t/fxruby-fxchoicebox-segfault/29720/4 "2006-08-07T15:56:02Z")

</div>

A lot of people say that, but very few of them do anything about it.  
Thank you for adding some of your examples to those sites that you  
mentioned!

> **···**
>
> On 8/7/06, Leslie Viljoen \<leslieviljoen@gmail.com\> wrote:
> 
> > I think we need examples for as much of FxRuby as possible.
