The latest modifications are not visible when you open resources in the Resource Editor (135912)
The information in this article applies to:
- The Resource Editor, when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++ for Windows, 16-bit edition 1.51
- Microsoft Visual C++ for Windows, 16-bit edition 1.52
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 2.2
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q135912 SYMPTOMS
Intermittently, The Resource Editor opens the resources, but the latest
modifications are not visible in the editor. This may occur with a project
that uses a version control system that doesn't update the timestamp on a
file when the file is checked out. It is not a bug in the Resource Editor.
CAUSE
The Resource Editor generates and uses a .APS file. This file contains a
binary format of the resources. The Resource Editor loads the resources
from this file to reduce the time required to load them. The article
mentioned in the "References" section of this article gives more
information about this file.
The Resource Editor uses dependency checking to determine if the this file
has to be regenerated. In the following scenario, the .APS file is not
regenerated. None of the following steps occur simultaneously.
- Person X checks out the resource file from the source control system.
- Person X modifies and saves the changes to a local copy of the
resources. The time on the resource file is now C.
- Person Y retrieves a copy of the resource file from the source control
system.
- Person Y opens and closes the local copy of the resources for the first
time. A local version of the .APS file is generated on Y's machine at
this point in time. The time on .APS file is now C + delta.
- Person X checks in the modified resource file.
- Person Y checks out the resources from the source control system and
opens the resources.
Person Y will see the resources without the modifications that were made by
Person X. The .APS file on Y's machine has a later timestamp (time C +
delta) than the resource file (time C), thus the .APS file is not
regenerated, and the old version of the resources is loaded.
RESOLUTION
Ensure that the resources are loaded from the resource file instead of from
the .APS file whenever the resource file has been updated. One approach is
to use a source control system that updates the timestamp of a file upon
checkout. The source control system may have a timestamp update option that
can be set. If this approach is not possible, delete the .APS file after
checking out the resources from source code control software. In either
case, the Resource Editor will then open the resources from the resource
files and regenerate the .APS file.
STATUS
This behavior is by design.
REFERENCES
For more information, please see the following article in the Microsoft
Knowledge Base:
132340 Common file extensions used by Visual C++
Modification Type: | Major | Last Reviewed: | 4/27/2005 |
---|
Keywords: | kbprb kbtshoot KB135912 kbAudDeveloper |
---|
|