PDA

View Full Version : File Locks with File.Install?


mcgill
07-07-2005, 02:21 PM
Hi All...

Does anyone know if the File.Install method locks file(s) on the server while a client is copying a file?

Our Client/Server connection is through LAN (not HTTP or FTP). I've noticed that while a large file is being installed by a client computer (say around 100 meg) that another client cannot install the file at the same time. I've verified that it in not permission problems, etc. by manually copying the file on more than 1 machine at the same time.

(a) If there is a underlying locking mechanism, is there a way to turn it off?
(b) If I used the File.Copy command instead, would I have the same problems?
(c) How would I figure out if the file should be installed if I moved to the File.Copy menthod (I use the built in overwrite constants with the File.Install so I don't have to figure it out manually)?

McGill

Mark
07-08-2005, 09:00 AM
Hi mcgill,

It doesn't look like the File.Install() action should be locking the source file in any way, the destination file is opened exclusively but the multiple processes should be able to access the source file at the same time.

We are currently testing this issue on our own LAN, so I will be able to provide you with more information on this issue once the tests have been completed.

Mark
07-13-2005, 08:33 AM
Hi mcgill,

We have tested this on our side and there seems to be a problem with the file being locked when performing both a File.Install() action and a File.Copy() action.

We are not exactly sure why this is happening yet, but we are still looking into it to determine whether or not it is a "feature" that we can turn off.

Thank you for your patience.

Desmond
02-23-2006, 12:46 PM
Ref: 12256

Darryl
02-24-2006, 02:36 PM
Hi mcgill, and anyone else out there...

Has anyone experienced this problem with the current build of TrueUpdate, Setup Factory or Visual Patch? I was looking into this one, but cannot seem to replicate it. If this problem still exists, please let us know and any further details for replicating it.

Thank you.

Darryl

TJS
03-17-2006, 12:14 PM
Hey Darryl... I'm not sure that mcgill will still be checking the forum... I was sharing that ID with a couple developers when we used to work there... all have moved on.

I do recall the issue but no longer have a TrueUpdate license to test. Please let me know if i can provide and info that would help.