[Kde-bindings] ruby+korundum app crashes at exit

Richard Dale Richard_Dale at tipitina.demon.co.uk
Mon Oct 11 13:56:00 UTC 2004


On Monday 11 October 2004 13:26, Thibauld Favre wrote:
> Le Lundi 11 Octobre 2004 10:11, Richard Dale a écrit :
> > On Monday 11 October 2004 00:23, Thibauld Favre wrote:
> > > I wasn't able to spot exactly what made my app crash again but the fact
> > > is that it crashes again from time to time at exit. If you play with
> > > the UI a little bit, you should be able to get a crash at exit rather
> > > easily.
> >
> > I couldn't get the app to run because it needed the mysql extension, and
> > so I'll have to find that and download it. But I've added a flag which
> > gets set when KDE::Application has returned from exec(), and after that
> > Korundum won't attempt to delete C++ instances anymore. So I hope that
> > fixes the crashes.
>
> I updated and made a few tests... So far so good, I cannot get my app to
> crash at exit. I'll get back to you if other crashes occur. Concerning my
> app, I think you could get it running easily by removing the dependency on
> mysql in DataManager.rb (require 'mysql.so' at the top of the file). I
> tested and it should be ok...
Are ok, I might try that, but I'm hoping this new 'application_terminated' 
flag will fix the app exit crashes. 

I downloaded the ruby mysql extension. But then I found it depended on 
installing MySql, which in turn depended on various perl modules.. So it 
looked like it would take all day. 

Then I wondered whether it would have been a good idea to use the Qt::Sql* 
classes instead of the ruby extension to connect to the database. Did you 
look into that way at all?

-- Richard



More information about the Kde-bindings mailing list