Discussion
Topics
Last Day
Last Week
Tree View

Search
New Messages
Keyword Search

Help
Getting Started
Formatting
Troubleshooting
Program Credits

Utilities
Edit Profile
Administration
Contact

 
forum - discussion board
- about - downloads - registration - forum - misc - home - © 1996-99 GWD Text Editor

File lock issue causes files to be wiped out.

GWD Text Editor Forum: Technical Support: File lock issue causes files to be wiped out.
Top of pagePrevious messageNext messageBottom of pageLink to this message  By Abdullah Bushnaq on Friday, April 12, 2002 - 04:58 pm:

We are hitting an issue in GWD when other applications have exclusive locks on files.

Here is the scenario:

- A user uses an application like BRIEF, dtSearch, etc to view a file. The file is locked for writing (no other application can write to the file).
- Same user or others open the file in GWD and make a change.
- The user making the change tries to save the file, they will get the following error message :
"Cannot open c:\example.txt file. Make sure the disk is not full or write-protected" with an OK button.
- The user clicks ok, gets another message:
"Another application has updated file C:\example.txt Reload it?"
- If the user clicks NO, nothing happens, the file is still safe but not saved to the disk. If they click YES, the file refreshes as a blank file and the changes are lost from the open document AND the file is wiped out on the drive!!!

So the first question is, what triggers GWD to think that the file has changed even if the other applications don't seem to have made changes to it?

The second one, why is the file wiped out? Even a backupfile is not created, the file is totally lost.

This is pretty urgent.

Thanks.


Top of pagePrevious messageNext messageBottom of pageLink to this message  By Vedran Gaco (Vgaco) on Saturday, April 13, 2002 - 10:30 am:

I trying to reconstruct your scenario. It is quite hard to find an application
which locks the file under Windows 2000, so I was need to develop a small
program that locks an file. When the file is locked for writing everything
goes as it should. You cannot save the file (file is locked) and after
"Another application has updated file C:\example.txt Reload it?" message,
GWD Text Editor reloads the file. When the file is locked for reading and
writting, you cannot save the file and after "Another application has
updated file C:\example.txt Reload it?" message box if the user clicks OK,
GWD Text Editor attempts to reload file. Because file is locked for reading,
this is impossible and GWD Text Editor closes the document window.
File on the disk is not wiped out, in fact that file is protected by OS
and only the process that locked the file can change it.

The only thing that GWD Text Editor should do is to check if the file is locked
before reloading the file.

Could you tell me under which version of Windows you works.


Top of pagePrevious messageNext messageBottom of pageLink to this message  By Abdullah Bushnaq on Monday, April 15, 2002 - 09:43 pm:

Windows NT 4.0. The software package that locks the file is called dtSearch (www.dtsearch.com).


Top of pagePrevious messageNext messageBottom of pageLink to this message  By Vedran Gaco (Vgaco) on Tuesday, April 16, 2002 - 10:42 pm:

For now, you can download GWD Text Editor patched version (www.gwdsoft.com/downloads/gtedit32.zip) which checks if the file is locked before reloading it.


Add a Message


This is a public posting area. If you do not have an account, enter your full name into the "Username" box and leave the "Password" box empty. Your e-mail address is optional.
Username:  
Password:
E-mail:


- about - downloads - registration - forum - misc - home - © 1996-99 GWD Text Editor