Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
IDE
Add Component Template
Background compile
Batch file target
Block Completion
Build Tools
Caliber
Class Completion
Class Explorer
Code Browsing
Code Completion
Code Editor
Code Explorer
Code Parameters
Code Templates
Compiler Message Window
Deployment Manager
Dialogs
Direct
Docking
File Browser
File Handling
Form Designer
Help
History View
IDE Insight
Memory Issues
Menu Designer
Menus
Module Manager
Multi-Monitor Support
Object Inspector
Object TreeView
Open Tools API
Packages
Performance
Printing
Project Explorer(old Object Browser)
Project Management
Build Events
Project Manager
Project Options
Project Source
Virtual Folders
Refactoring
Repository
Save Desktop
Search
Start Page
Starteam
Startup/Shutdown
Structure Pane
System Resources
ToDoList
Tool Palette
Toolbars/Status Line
Translation Tools
Unit Testing
Version Control
VersionInfo
Views
Visual Form Inheritance
Workgroup(PVCS)
You are not logged in.
Help
Print
Public Report
Report From:
Delphi-BCB/IDE/Project Management
[ Add a report in this area ]
Report #:
101053
Status:
Reported
Delphi ignores .dproj file contents in favour of .res file
Project:
Delphi
Build #:
12.0.3420.21218
Version:
12.3
Submitted By:
Johan S
Report Type:
Feature Specification issue
Date Reported:
11/16/2011 12:52:59 AM
Severity:
Extreme corner case
Last Updated:
11/16/2011 6:07:05 PM
Platform:
All versions
Internal Tracking #:
Resolution:
None
Resolved in Build:
:
None
Duplicate of:
None
Voting and Rating
Overall Rating:
No Ratings Yet
0.00 out of 5
Total Votes:
11
Description
Delphi does not read project options from the .dproj file if there is a compiled .res file available. This causes problems in properly version controlling a Delphi project since even if changes are reflected in the .dproj file, each developer always has their own compiled (and outdated) .res file from which Delphi loads project options. Unless the .res file is manually removed in order to force it to be re-generated from the .dproj file, the project options are not updated.
Further information in this thread:
https://forums.embarcadero.com/thread.jspa?threadID=63656
CodeGear?Delphi? 2009 Version 12.0.3420.21218
Steps to Reproduce:
1. Start a new project, set project version information using the project options editor.
2. Save the project and then store a separate copy of the current projectname.dproj file.
3. Close the project and re-open.
4. Alter the version information for the project using the project options editor.
5. Save the project.
6. Notice that both the projectname.dproj file and the projectname.res files are modified.
7. Close the project.
8. Replace the current projectname.dproj file with the one saved in step 2.
9. Re-open the project.
10. Although the version information is different in the .dproj file, Delphi reads it from the .res file.
Workarounds
The proper solution would be to have the Delphi IDE always read from the .dproj file and never from the .res file.
A workaround is to always delete the project's .res file after any change to the project options. This workaround is of course rather error-prone for a team working on the same project.
Attachment
None
Comments
Johan S at 12/8/2011 1:57:01 AM
-
A side-effect of the above workaround is that the application icon disappears, since it it stored only in the project resource file.
A functioning workaround is to move version information and icon to external resource files and simply stop using the project resource file created by Delphi.
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us