Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Error After building in device
Forum Updated to NodeBB v4.3 + New Features

Error After building in device

Scheduled Pinned Locked Moved Mobile and Embedded
13 Posts 6 Posters 4.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    koahnig
    wrote on last edited by
    #2

    hi gogoi
    you should provide some more details on operation system, compiler and other stuff you are using.

    Vote the answer(s) that helped you to solve your issue(s)

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gogoi
      wrote on last edited by
      #3

      ok koahnig..i am using qt sdk1.1,device used is nokia c7,platform is windows 7

      1 Reply Last reply
      0
      • I Offline
        I Offline
        imrrk
        wrote on last edited by
        #4

        Hello friends ,Am trying to run my project which involves organizer api usage and I have written a function called save,wen i click on this function ,I am getting the error as "Process 1321, thread 1322 stopped at 0x7cdc4772: A data abort exception has occurred."
        my save function code is below
        @void addevent::saveClicked()
        {
        // Read data from page
        QDateTime start(m_startTimeEdit->dateTime());

        QDateTime due(m_dueTimeEdit->dateTime());
        if (start > due) {
            QMessageBox::warning(this, "Failed!", "Start date is not before due date");
            return;
        }
        
        m_organizerTodo.setDisplayLabel(m_subjectEdit->text());
        m_organizerTodo.setStartDateTime(start);
        m_organizerTodo.setDueDateTime(due);
        int index = m_priorityEdit->currentIndex();
        m_organizerTodo.setPriority((QOrganizerItemPriority::Priority) m_priorityEdit->itemData(index).toInt());
        
        index = m_statusEdit->currentIndex();
        QOrganizerTodoProgress::Status currentStatus = (QOrganizerTodoProgress::Status) m_statusEdit->itemData(index).toInt();
        QOrganizerTodoProgress oldStatus = m_organizerTodo.detail<QOrganizerTodoProgress>();
        m_organizerTodo.removeDetail(&oldStatus);
        if (currentStatus == QOrganizerTodoProgress::StatusComplete && oldStatus.status() != QOrganizerTodoProgress::StatusComplete)
            m_organizerTodo.setFinishedDateTime(QDateTime::currentDateTime());
        m_organizerTodo.setStatus(currentStatus);
        
        // Save
        if (m_calendarComboBox->currentIndex() > -1) {
            m_organizerTodo.setCollectionId(m_collections[m_calendarComboBox->currentIndex()].id());
        }
        
        m_manager->saveItem(&m_organizerTodo);
        
        m_manager->saveCollection(&m_collection);
        

        // qDebug()<<m_organizerTodo;
        // if (m_manager->error())
        // QMessageBox::warning(this, "Failed!", QString("Failed to save todo!\n(error code %1)").arg(m_manager->error()));
        // else
        // return;
        // //emit showDayPage();

        }@

        so friends please help me out..

        regards
        imrrk

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          ZapB
          wrote on last edited by
          #5

          Run your code in a debugger and see what causes the crash.

          Nokia Certified Qt Specialist
          Interested in hearing about Qt related work

          1 Reply Last reply
          0
          • I Offline
            I Offline
            imrrk
            wrote on last edited by
            #6

            Ok Zap I will check out..and one more thing my entries are not getting saved in device calender?

            regards
            imrrk

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              ZapB
              wrote on last edited by
              #7

              Once again, a debugger will help you see why that is so.

              Nokia Certified Qt Specialist
              Interested in hearing about Qt related work

              1 Reply Last reply
              0
              • I Offline
                I Offline
                imrrk
                wrote on last edited by
                #8

                whether any mistake in code?

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tdmatsu
                  wrote on last edited by
                  #9

                  does it work on Simulator?

                  edit: For my defense, couple of comments above were not visible when I posted this :)

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    koahnig
                    wrote on last edited by
                    #10

                    Yes, the use of a debugger is most likely the only resoure you have to find your coding errors. Maybe your program is not executing a part, which it should execute.
                    Nobody can answer or help you in that respect better than your own debugger.

                    Vote the answer(s) that helped you to solve your issue(s)

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      andre
                      wrote on last edited by
                      #11

                      The use of a debugger, either human and/or in the form of a computer program, is your only hope of finding your problem. Both require an investment by you, either in time, in money or both.

                      1 Reply Last reply
                      0
                      • I Offline
                        I Offline
                        imrrk
                        wrote on last edited by
                        #12

                        hey tdmatsu..i didnt got such error in simulator wheni clicked on save button

                        regards
                        imrrk

                        1 Reply Last reply
                        0
                        • T Offline
                          T Offline
                          tdmatsu
                          wrote on last edited by
                          #13

                          ok. anyway, if you know that the crash is always happening in that function, i think it's just a matter of time and effort to find out which line is crashing.

                          happy debugging!

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved