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. [Solved] jumps over my class!
Forum Updated to NodeBB v4.3 + New Features

[Solved] jumps over my class!

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.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.
  • M Offline
    M Offline
    MohammadReza
    wrote on last edited by
    #1

    Hello friends.
    (excuse me if my English writing is not good enough)

    I create a GUI Project & then create a new class named "Encryptor". I use this class in mainwindow.cpp.
    @

    unsigned char MyPlainText[16] = {0x00 ,0x11 ,0x22 ,0x33 ,0x44 ,0x55 ,0x66 ,0x77 ,0x88 ,0x99 ,0xaa ,0xbb ,0xcc ,0xdd ,0xee ,0xff};
    unsigned char MyKey[16] = {0x00 ,0x01 ,0x02 ,0x03 ,0x04 ,0x05 ,0x06 ,0x07 ,0x08 ,0x09 ,0x0a ,0x0b ,0x0c ,0x0d ,0x0e ,0x0f};
    unsigned char *Xesult;

    Encryptor enc;
    enc.Encrypte(MyPlainText, MyKey, Xesult);

    ui->ledEnResult->setText(toHex(Xesult));
    

    @

    I set breakpoint to detect the problem. I found in debug mode, the arrow jumps over these two line & doesn`t execute them:
    @
    Encryptor enc;
    enc.Encrypte(MyPlainText, MyKey, Xesult);
    @

    No syntax or run-time error! Just Logical error.

    Thanks a lot.
    Ya Ali.

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

      Probably you should do a "run qmake" and a "rebuild" in qt creator for the project.

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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MohammadReza
        wrote on last edited by
        #3

        Thanks a lot dear koahnig.
        worked!
        i have a general question.
        why do some problem disappear by Rebuild?

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

          [quote author="MohammadReza" date="1394999464"]
          i have a general question.
          why do some problem disappear by Rebuild?[/quote]

          Sorry, I can give only a stupid answer: It is magic ;-)

          Frankly, I have given up to find the source of these problems. There are apparently issues when switching between release and debug modes to my experience.

          The "run qmake" and "rebuild" sequence is like the reboot of the PC typically a good bet. Even though I am using reboot far less than in previous times, the qmake and build is more frequent. Especially, when I do not see a reason and think that it is very strange. When problems remain I stop working and go to bed. A fresh start in the morning helps in most then. ;-)

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

          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