View Single Post
Venemo's Avatar
Posts: 1,296 | Thanked: 1,773 times | Joined on Aug 2009 @ Budapest, Hungary
#10
Not sure but i think Q_WS_MAEMO_5 came in 4.6 and 4.5 has Q_WS_HILDON.
I'm surprised! Q_WS_HILDON just works. But why did they change it?
No matter, I now use the following:
Code:
#if defined(Q_WS_MAEMO_5) || defined(Q_WS_HILDON)
So it will compile on 4.5 and 4.6 as well. Thank you!

Ive had a quick look at your code, and i couldnt figure out anything inapprorpiate immediately. WIll try to have a closer look.
Thank you very much for looking into it!
Did you watch the video recording?
Do the crashes happen on your device also, or is it only the fault of my device?

If you have time at hand now, why not comment each of those 3 Dialogs one by one and localize it.
This is a really nice idea, thanks for it! Of course I have the time.

After some testing and trying to localize the issue, it seems that QMessageBox doesn't crash by itself, however QInputDialog crashes gladly. After some trying, the debugger actually worked, and it said that a segmentation fault has occoured. (I attached a zipped screenshot about it.)
It seems that the error is in Qt's code, not mine. Can I do anything about it?

The question is, why aren't any of the errors caught by the try-catch block in main() ?

This is because you're deleting the reply in one of its slots. Instead of using the delete keyword, you want to call reply->deleteLater().
You also saved my day with this.
I didn't know about deleteLater(), the tutorial I saw used the delete operator.
(And it didn't crash the sample application which I made to test how it works.)

Big thanks again to all of you!
Attached Files
File Type: zip scr_qt_bug.zip (239.1 KB, 185 views)

Last edited by Venemo; 2010-04-12 at 14:38.
 

The Following User Says Thank You to Venemo For This Useful Post: