Re: Gnome::Spell problems

On 06/27/01 Andrew Schretter wrote:
I've been trying to get the Gnome::Spell widget to work, but
it has been crashing my application shortly after using it.

I reduced it to the simplest case possible, a text area that pops up a spell
checking dialog.  The code is reproduced below. Upon running the program, one
can enter text into the textarea, then try to spell check it, you can just close
the dialog and or try checking the document a couple more times and it crashes
on my system with a segmentation fault in perl.

It is probably because I am not closing something properly, but
I can't find it.  Ideas?  I'm using the CVS version of GtkPerl from
around Jun 13th and gnome-libs-1.2.11.
   $w->signal_connect('destroy', sub { $sp->kill; $w->destroy; });
   $w->signal_connect('delete_event', sub { $sp->kill; $w->destroy; });
   $b->signal_connect('clicked', sub { $sp->kill; $w->destroy; });

There is a problem in the C library, so you should avoid killing the 
ispell process: remove the $sp->kill calls and it should be more stable.

Thanks for providing the test case for this.


lupus debian org                                     debian/rules
lupus ximian com                             Monkeys do it better

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]