Changes in source code are ignored by the compiler

Asked

Viewed 181 times

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).

- I altered the caption.

- Includes a message in the create event.

- I compiled, but remains unchanged (Date and time updated).

How to solve this problem?

  • 1

    these changes are made in the project’s own sources or in some project group bpl?

  • 1

    Changes are being made in the project itself, in my main form.

  • 1

    What about the date of creation/change of the executable? How does it look? You can post some images to illustrate the problem?

  • I will provide.

  • Images included in the post @Filipe.Fonseca.

  • 1

    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

  • 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.

  • One last question: Why do you have 2 open ufrmMain?

  • 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.

  • You mentioned the executable, but are the . dcu files being changed? You have more than one copy of the code on your pc?

  • @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?

Show 6 more comments

1 answer

1


You mentioned the executable, but are the . dcu files being changed? You have more than one copy of the code on your pc?

It turns out that Delphi may be using old bpls or dcus files and not redoing all the work it should.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.