[SailfishDevel] Ho to analyse app crash when re-starting app fails

Dmitriy Purgin dpurgin at gmail.com
Wed Jul 23 07:13:43 UTC 2014


Hello,

many thanks for the info, it seems to be the trouble! I'll check this out later.

Cheers

2014-07-23 12:29 GMT+06:00 Tomasz Sterna <tomek at xiaoka.com>:
> Dnia 2014-07-23, śro o godzinie 09:23 +0600, Dmitriy Purgin pisze:
>> QML did somehow destroy my object
>
> Are you aware of QQmlEngine::ObjectOwnership [1]?
> "QML uses a heuristic to set the default object ownership. By default,
> an object that is created by QML has JavaScriptOwnership."
> "Objects not-created by QML have CppOwnership by default. The exception
> to this is objects returned from C++ method calls;"
>
> As with any heuristic, your object might get "suddenly" destroyed if it
> does not have parent() after passing to QML, unless you set CppOwnership
> explicitly.
>
>
> [1] http://qt-project.org/doc/qt-5/qqmlengine.html#ObjectOwnership-enum
>
> --
> Tomasz Sterna                           :(){ :|:&};:
> Instant Messaging Consultant   Open Source Developer
> http://abadcafe.pl/      http://xiaoka.com/portfolio
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org


More information about the Devel mailing list