[Solved] jumps over my class!
-
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. -
Thanks a lot dear koahnig.
worked!
i have a general question.
why do some problem disappear by Rebuild? -
[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. ;-)