Java VM crashes after closing the application (a QSettings problem?)

Florian Hübner florian.huebner at psi.ch
Fri Feb 15 11:13:25 CET 2008


> 1. Does this only happen when your QSettings code is active? (if you 
> comment out all the code that writes or reads to QSettings and run the 
> application otherwise unchanged, will the crash disappear?)

That was the case before, but somehow something else must have snuck 
into the code and now it happens even after commenting everything out.

> 2. Precisely what types are you storing in QSettings? Do each of these 
> support the Serializable interface?

QByteArray and String
String certainly does and my guess would be that QByteArray does the same.

> 3. Does the crash by any chance disappear if you add the following code 
> at the end of your main() method:
> 
>    if (QApplication.instance() != null) QApplication.instance().dispose();
> 

No

> Also, of course, any code sample which reproduces the crash would be 
> extremely helpful.

I will try to narrow it down once my schedule allows it again. Hope I 
can be of more help then.



More information about the Qt-jambi-interest mailing list