Delphi 2009 Update 3 is out, and you all seem to have successfully downloaded it and are enjoying the new fixes and improvements. But some of you are reporting that there are some discrepancies between your PAS files and your DCU files.
This is happening almost certainly as a result of you making changes to the VCL source code. The installer is very careful not to overwrite your files – if you’ve changed a file in the \source\vcl directory, the update installer will see that and not make the change. Same with any DCU files that you may have produced as a result. Again, we won’t overwrite and thus delete your changes.
So, if that is happening to you, then you merely need to run a repair, and the installer should at that point see the differences and correct them. When you run a repair, you are telling the installer “Go ahead and make my install like it is supposed to be, and you have permission to overwrite my changes”. Doing that will get everything back in sync.
Following on to that, we strongly recommend that you never make any changes to the files in:
C:\Program Files\CodeGear\RAD Studio\<version>\source
and instead treat the files in that directory as a reference only. In addition, we strongly recommend that you never put that path (or any of its subdirectories) on any of your IDE paths that can result in that code being compiled. (You can put it on your browsing paths if you want….) If you want to debug into the VCL source code, you should set “Use Debug DCUs” in your project options. That will enable you to step into the VCL/RTL code with the debugger in one easy step without having to muck with the source itself.
Now, if you want to make change to the VCL source code and include that in your projects, we strongly recommend that you take a copy of the PAS file in question and either include it directly in your project or put it in a path where your project will see it.
Again, we strongly discourage you from compiling or altering the source code in place in the default install directory. Use it a reference, but leave it in place. If you need to mess around with it, make copies and mess around on your copy.
Share This | Email this page to a friend