Opened 14 years ago

Closed 14 years ago

#1413 closed Bug (No Bug)

Shared file access flags behavior change in FileOpen

Reported by: GicuPiticu Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: FileOpen, Shared file access flags Cc: piticu.gicu@…


It seems that FileOpen function has been modified about the way it handles shared file access flags in as opposed to
Maybe it's time for implementing FileOpen modes/flags like OF_SHARE_DENY_NONE and so on.

With code like the folowing... one can't do a "tail" any more on the test.log file while the script is running... because of "File Sharing Violation".
If the script gets compiled/runned by -> no all started with compiling/running the same script in

While True
;;;do somethin' useful
   FileWrite($hLogFile,"some meaningfull message")
;;;more processing

Attachments (0)

Change History (1)

comment:1 Changed 14 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

If the files are now correctly locked... good! They should have been locked from day one but there was some bug I didn't have time to track down which was allowing them to be shared. The fact that they were shared *was* the bug, not that they can no longer be shared. If that "always shared" bug is indeed fixed then I can finally implement proper sharing and file locking (#546).

This is no bug, assuming it's true.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.