File on Novell network storage loses changes when modified outside
- From: pioneer06 <pioneer06@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 21 Nov 2006 08:51:02 -0800
We have noticed an issue with files being overwritten when the file resides
on a Novell network storage drive and it has been modified outside the VS
editor while also open in VS Professional 2005. Steps to reproduce the issue
are provided at the end of this post.
As to the problem we have encountered, a simple process flow is:
1. While the file is also open in the VS editor, it is modified in an
outside editor (ie, Notepad) and saved in the outside editor.
2. The file is modified within VS (VS does not recognize the file has been
modified outside the source editor and does not reload or prompt to reload
the file).
3. The project is built (changes are overwritten even more covertly if there
are build errors).
4. Changes made outside the source editor are lost without the user being
prompted that other changes to the file have been made.
We have noticed this is only an issue when the file is located on a network
drive. If the file resides on primary or removable storage, changes are
noticed by VS almost immediately after the external save and the user is
prompted to Disregard or Overwrite changes in memory. A faculty members
instructions for reproducing the problem is found below. The J:\ is our
individual user storage on Novell.
1. Start .net 2005
2. File|New Project
a. select Visual C++ for project type
b. select "Win32 Console Application"
c. Set the Name to "test"
d. set Location to J:
e. clear "Create directory for solution" and "add to source control"
f. click OK
3. In Win32 Application Wizard:
a. select "Application Settings"
b. select Console Application
c. check Empty project
d. click on Finish
4. In the solution explorer:
a. right click on the project name (test)
b. select Add|New Item
c. make sure Visual C++ is selected in the left pane
d. select "C++ File (.cpp)"
e. enter "Test" for Name
f. make sure Location set to j:\test
g. click Add
5. In Test.cpp, write the code
#include <iostream>
using namespace std;
int main()
{
cout << "Hello, tester." << endl;
}
6. In the Solution Explorer
a. right click on test (project name)
b. select Properties
c. click on Configuration Properties|General
d. set Output Directory to
c:\temp\x\$(ConfigurationName)
e. set Intermediate Directory to
c:\temp\x\$(ConfigurationName)
f. Click on OK
6. Select Debug|Start without Debugging, confirm get "Hello, tester." on
the screen, and press the enter key.
7. Using Windows Explorer, right click on Test.cpp and select
Open With|WordPad
8. Remove the first "<<", save the file, and quit Wordpad.
9. Return to Studio .NET; should now get a prompt to reload the file (would
if the file were on C:), but do not get any such prompt.
10. Add
return 0;
as the last line of main() and click on the Save button. The system now
prompts
This file has been modified outside of the source editor.
Do you want to reload it?
Select Yes. Note that the file still contains the return and the
change made earlier (removing the <<) has been undone.
11. In Windows Explorer, right click on the file, open it with Wordpad, and
confirm that the previous changes made in Wordpad have been lost.
Thank you for any help you can provide.
.
- Prev by Date: Can vs.net 2005 split my .cs files from vs.net 2003 into .cs and .designer files?
- Next by Date: Client-Side Scripting in VS05?
- Previous by thread: Can vs.net 2005 split my .cs files from vs.net 2003 into .cs and .designer files?
- Next by thread: Client-Side Scripting in VS05?
- Index(es):
Relevant Pages
|