06-28-2013 06:05 PM
I've got a really bizzarre problem.
On a simulator:
When I "run" my app, it works. Works well.
When I "debug" my app, it freezes at a certain point. Until, I place a breakpoint in my main.qml file, and then it just starts working again.
When I run the app, acts as it does when debugging with the simulator. Except of course, I can't set a breakpoint.
The app opens with a login page, interface done with C++. User enters credentials, and it authorizes with an API, and then it proceeds to load my main.qml file. So login process interface is in C++ and then all the rest is QML.
When debugging, it freezes right when trying to load the QML after successful login authorization. Then it just sits there. No hints as to what is happening from the console or an ssh session.
But then, I decided for some reason to place a breakpoint in my main.qml file, the one that was stuck loading. I placed it while the app was frozen, not before running. And then, after a couple seconds, the app proceeded to load the QML and all was well.
Anybody have even the slightest clue as to what is happening??
Here is the code that is loading the QML after successful login. Keep in mind, all my code is working when I just "run" the app. But debugging seems to reveal an issue.
QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent( this); qml->setContextProperty("app", this); AbstractPane *root = qml->createRootObject<AbstractPane>(); Application::instance()->setScene(root);
Using sdk 10.1.0.2420.
06-28-2013 06:36 PM
06-29-2013 01:02 PM
06-30-2013 02:56 PM
07-02-2013 06:40 PM
07-03-2013 05:23 AM