# FXRuby - textedit.rb example crash problem

**URL:** <https://www.ruby-forum.com/t/fxruby-textedit-rb-example-crash-problem/95474>\
**Category:** Ruby\
**Created:** [June 2, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/fxruby-textedit-rb-example-crash-problem/95474 "2006-06-02T18:34:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [June 2, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/fxruby-textedit-rb-example-crash-problem/95474/1 "2006-06-02T18:34:07Z")

</div>

Dear all,

I am writing a GUI. I need some bigger subfield with an editor in  
it. So I tried to incorporate the textedit.rb example  
(FXRuby-1.6.0,fox-1.4.33,Ruby 1.8.4).  
But when I enter text in it and use a backspace to  
correct some typo, the program immediately stops  
with error: FXRbText::extractText : bad argument (in Redhat Linux),  
if I use it under Cygwin(Windows XP), it crashes after entering the  
first  
letter into the editor window (see error file below).  
What’s wrong here ?  
Is there any other ready-made editor available that doesn’t use  
these functions (they seem to be part of FXRuby) ?

Thank you,

Axel

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [June 2, 2006, 8:55pm UTC](https://www.ruby-forum.com/t/fxruby-textedit-rb-example-crash-problem/95474/2 "2006-06-02T20:55:55Z")

</div>

On 6/2/06, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am writing a GUI. I need some bigger subfield with an editor in  
> it. So I tried to incorporate the textedit.rb example  
> (FXRuby-1.6.0,fox-1.4.33,Ruby 1.8.4).

FXRuby 1.6 requires FOX 1.6.5 or later and won’t work with FOX 1.4.33.  
I’m a little curious about how you managed to compile FXRuby-1.6.0  
against fox-1.4.33 in the first place…

> But when I enter text in it and use a backspace to  
> correct some typo, the program immediately stops  
> with error: FXRbText::extractText : bad argument (in Redhat Linux),  
> if I use it under Cygwin(Windows XP), it crashes after entering the first  
> letter into the editor window (see error file below).  
> What’s wrong here?

Not sure, but it sounds like something you might want to file a bug  
report about:

```
http://rubyforge.org/tracker/?atid=1223&group_id=300&func=browse

```

For the time being, I’d recommend backing off to FXRuby 1.4, which is  
the stable release of FXRuby.
