RE: Writing/reading files

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Bala,

Thanks for your post!

No, I do not think there is any perfect solution for this issue. This is
controlled by the first opener process. The first opener process can
specify the share mode with other processes, for example, it can specify
share read, share write or share readwrite etc... However, if your process
read operation always gets the exception "The process cannot access the
file "filename" because it is being used by another process.", it means the
opener did not specify share read mode. In Windows security area, the
security operation must obey *trust* rule. That is if the owner does not
trust you, you can not change the owner behavior, or there is a security
hole in the design.

So in our situation, the owner process does not want to share with others,
in another word, it does not turst others, so we have to obey the rule.

The best practise is handling this exception and display a user friendly
"file in use" dialog to the end user.(This is also what Windows Explorer
does)

Hope this helps!

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: conflicting object names in sql server 2000
    ... The owner of the object will depend on the user ... On the local database server when it does the select * from ... she must specify the owner: ...
    (microsoft.public.sqlserver.server)
  • Re: logged in user cant see tables
    ... I assume I am connecting to the correct database, as when I select with the ... database with an employees table on my server). ... specify the the owner name. ... I just didn't expect I would HAVE to specify the ...
    (microsoft.public.sqlserver.security)
  • Re: udev-071-0.FC4.2 does not seem to obey console.perms for pilot ttyUSB
    ... Sjoerd Mullender wrote: ... I didn't see a way in udev to specify that the owner of the file should ...
    (Fedora)
  • Re: Changing Default Names
    ... >>must specify the owner name when referencing the object. ... >>SQL Server MVP ... >>>>Is it possible the constraint has a different owner ...
    (microsoft.public.sqlserver.server)
  • -- WINDOW Log --
    ... When encrypting, be sure to specify that the output is to be ASCII, ... Users rely on your remailer for security. ... Reliable introduces several new directiveremailer directives, ...
    (sci.crypt)