2
I have a little project in Delphi 2006, and I migrated it to Delphi XE6. However, from this migration, I realized that the changes I make in the source code, such as changes in the form title, messages, or even in logical conditions are not included in the generated executable.
Regardless of whether I use the option of Run Without Debugging, Run, or Build, no change is reflected in the final executable. The interesting thing is that at each compilation the previous executable is replaced, and a new executable is generated, with updated date and time, and even if I change the Output directory, it will generate the new executable inside the new directory, but still without the changes I made in the code.
Example:
- Application before change (Note executable date and time).
- Includes a message in the create event.
- I compiled, but remains unchanged (Date and time updated).
How to solve this problem?
these changes are made in the project’s own sources or in some project group bpl?
– Caputo
Changes are being made in the project itself, in my main form.
– adamasan
What about the date of creation/change of the executable? How does it look? You can post some images to illustrate the problem?
– Filipe.Fonseca
I will provide.
– adamasan
Images included in the post @Filipe.Fonseca.
– adamasan
Ask a question, if you put the answer: Did you copy and paste the sources elsewhere? Perhaps it is the case that the ufrmMain you are changing does not belong to the Radsmsserver project
– Filipe.Fonseca
No, @Filipe.Fonseca, I took the same project that I was opening on Delphi 2006 and opened on XE6, because it’s an extremely small project, I didn’t have to make changes to the code to compile on XE6, compiled it quietly and saved it, but then I went to try to make changes, and I realized this problem.
– adamasan
One last question: Why do you have 2 open ufrmMain?
– Filipe.Fonseca
This other form I created when I was already trying to solve the problem. I realized the problem when I was trying to create a routine to send the program to the system tray by minimizing. As it was not working, I created another project, and in this other project also a frmMain. As the routine worked well in the new project I opened this form there just to compare the codes and see if there was a difference, but it does not belong to the project and the changes are not being made in it.
– adamasan
You mentioned the executable, but are the . dcu files being changed? You have more than one copy of the code on your pc?
– EMBarbosa
@Embarbosa, in fact, I checked in the directory of my project, and although I was using the "Build" option to recompile all DCU’s, apparently they were not being recompiled, I don’t know if due to migration problem or not. But since I erased them and Delphi recreated them, the changes were rather for the wearable. I could post as an answer so that I accept it?
– adamasan