View Issue Details

IDProjectCategoryView StatusLast Update
0031587FPCPackagespublic2017-03-23 16:22
ReporterAlexey Tor.Assigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionProduct Build 
Target Version3.2.0Fixed in Version3.1.1 
Summary0031587: FCL-Json: should use fmShareDenyNone
Descriptionjsonconf.pp

Should used shareDenyNone mode, so app dont show exceptions, if a JSON file is reading by 2 programs at same time.
My code works:

procedure TJSONConfig.LoadFromFile(const AFileName: String);

Var
  F : TFileStream;

begin
  F:=TFileStream.Create(AFileName,fmOpenRead or fmShareDenyNone);
  try
    LoadFromStream(F);
  finally
    F.Free;
  end;
end;
TagsNo tags attached.
Fixed in Revision35644
FPCOldBugId
FPCTarget
Attached Files

Relationships

has duplicate 0031166 resolvedMichael Van Canneyt JsonConf: need share-more on read 

Activities

Michael Van Canneyt

2017-03-23 16:22

administrator   ~0099172

Fixed. Thanks for reporting!

Issue History

Date Modified Username Field Change
2017-03-23 15:13 Alexey Tor. New Issue
2017-03-23 15:55 Michael Van Canneyt Assigned To => Michael Van Canneyt
2017-03-23 15:55 Michael Van Canneyt Status new => assigned
2017-03-23 16:22 Michael Van Canneyt Fixed in Revision => 35644
2017-03-23 16:22 Michael Van Canneyt Note Added: 0099172
2017-03-23 16:22 Michael Van Canneyt Status assigned => resolved
2017-03-23 16:22 Michael Van Canneyt Fixed in Version => 3.1.1
2017-03-23 16:22 Michael Van Canneyt Resolution open => fixed
2017-03-23 16:22 Michael Van Canneyt Target Version => 3.2.0
2017-03-23 21:38 Michael Van Canneyt Relationship added has duplicate 0031166