wagenheimer
24-04-2011, 08:34 PM
Stream := TFileStream.Create(FileName, fmOpenRead or fmShareDenyNone);
try
LoadFromStream(Stream);
finally
Stream.Free;
end;
I'm getting Access Violations on Stream.Free on Lazarus 0.9.31 and FPC 2.4.2, on MacOS. The same code works on Delphi 2010.
If I remove Stream.Free it works, but the file remains open.
Has anyone gone through something similar?
try
LoadFromStream(Stream);
finally
Stream.Free;
end;
I'm getting Access Violations on Stream.Free on Lazarus 0.9.31 and FPC 2.4.2, on MacOS. The same code works on Delphi 2010.
If I remove Stream.Free it works, but the file remains open.
Has anyone gone through something similar?