×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    3

    QMessageService takes a long time to instantiate

    I have several questions regarding QMessageService object in QtMobility. I hope someone can help me with these questions.

    1) QMessageService object takes a long time (bit more than 1 minute) to instantiate on my N9 running PR1.3. Is this normal?

    2) I have put the object creation code in a QThread to avoid locking up the main UI, my app will work fine (send SMS), but when exiting my app, QCreator will come back with a segfault. Can any show me how to fix this?

    class MessagingThread : public QThread
    {
    public:
    MessagingThread(QObject *pEngine = NULL);
    bool send(CActionEngine *pEngine, const QString& sNumber, const QString& sMsg);
    void run();

    QString m_sNumber, m_sMsg;
    CActionEngine *m_pEngine;
    };

    MessagingThread::MessagingThread(QObject *parent) :
    QThread(parent)
    {
    m_pMainApp = NULL;
    }

    void MessagingThread::send(CActionEngine *pEngine, const QString& sNumber, const QString& sMsg)
    {
    m_pEngine = pEngine;
    m_sNumber = sNumber;
    m_sMsg = sMsg;
    start(QThread::LowPriority);
    }

    void MessagingThread::run()
    {
    m_pEngine->m_pMessageService = new QMessageService;
    m_pEngine->m_pMessageService->moveToThread(m_pEngine->thread());
    }

    3) Sometime QMessageService will fail to instantiate when my app is not running from QCreator. Is this caused by aegis security? If so, I am asuming once it is published from Nokia store, this will be fixed. Is this assumption correct?


    Thanks in advance

  2. #2
    Registered User
    Join Date
    Jul 2012
    Posts
    3

    Re: QMessageService takes a long time to instantiate

    QMessageService also failed to instantiate when running under QCreator, so my previous assumption is total wrong. When it failed to instantiate, I will get this on QCreator output window.

    libqtcontacts-tracker: queue.cpp:104: The task queue's background thread stalled
    libqtcontacts-tracker: queue.cpp:104: The task queue's background thread stalled
    Last edited by scl77; 2012-08-20 at 05:18.

Similar Threads

  1. Replies: 10
    Last Post: 2012-07-10, 07:12
  2. Prefecting a player takes a long time. Why is that?
    By amila325 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2008-09-03, 07:26
  3. Game takes a long time to load.....
    By ziyaaf in forum Mobile Java General
    Replies: 4
    Last Post: 2008-06-19, 10:12
  4. Creating listbox takes long time?
    By birol.sekerci in forum Symbian User Interface
    Replies: 5
    Last Post: 2004-11-07, 19:27
  5. Conection - how long time it takes?
    By koperak in forum Bluetooth Technology
    Replies: 2
    Last Post: 2002-12-18, 10:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •