Search found 3 matches

by AyrA
06 Aug 2018 20:18
Forum: Feature and Enhancement Requests
Topic: Not possible: HxD should allow others write access, when it opens a file for writing
Replies: 5
Views: 1003

Re: Use FileShare.ReadWrite

Only as a second method. The problem is if App1 allows Read+Write share, App2 is only able to write if it also grants this permission. This is why I am suggesting that HxD as usual tries to exclusively lock the file (what most frameworks do by default on Windows) but if that fails, try to access the...
by AyrA
06 Aug 2018 20:05
Forum: Feature and Enhancement Requests
Topic: Not possible: HxD should allow others write access, when it opens a file for writing
Replies: 5
Views: 1003

Re: Use FileShare.ReadWrite

The problem is not reading the file but writing to it. HxD is able to read the file that is open in my own application and properly displays changes every time it gets focus again, but it fails to write to it as soon as I attempt to edit hex values in it.
by AyrA
06 Aug 2018 19:21
Forum: Feature and Enhancement Requests
Topic: Not possible: HxD should allow others write access, when it opens a file for writing
Replies: 5
Views: 1003

Not possible: HxD should allow others write access, when it opens a file for writing

When HxD reopens a file for editing, it should attempt to use Read+Write if exclusive locking fails. Right now it looks like the editor tries to obtain exclusive access rights to the file which is fine as a first attempt, but if that fails, dwDesiredAccess should be set to FILE_SHARE_READ|FILE_SHARE...