Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Question about debug and release mode.

Question about debug and release mode.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.6k Views
  • 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.
  • H Offline
    H Offline
    House15
    wrote on last edited by
    #1

    Good day, everyone. I have strange behavior of my program in debug and release mode. Here it is:

    Here is screen with a code. I wrote qDebug in condition of indexes i and j: qDebug()<<"i==elemMismatch1&&j>elemMismatch2"; and qDebug()<<"String for replace was added into DataNewDocument[numberOfVersionNewDocuments].StatusOfRowInOlderVesrsion";. If program has come in those points - it will be shown in console.

    !http://www.ljplus.ru/img4/a/l/alukard_integr/Skrin-koda-s-usloviyami.png(Скин с кодом)!

    Now i set point of stop anywhere in program:
    !http://www.ljplus.ru/img4/a/l/alukard_integr/Toka-ostanova.png(Точка останова)!

    Let's start program in debug mode. We will see some thing like this:
    !http://www.ljplus.ru/img4/a/l/alukard_integr/Vyvod-na-ekran-na-otladke.png(Отладка)!

    As you can see, program has entered in all "if's" and "else's" and displayed it in console.

    Now let's start program in release mode without any point of stop. Here what console will show us:
    !http://www.ljplus.ru/img4/a/l/alukard_integr/Vyvod-na-ekran-na-relize.png(Релиз)!

    You see? Program has't entered in last condition "else" in consequence of which data has corrupt and result in end are incorrect.

    What cause this?

    Many thanks in advance.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      House15
      wrote on last edited by
      #2

      Surely no came across this? Or am I really not competent?

      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