TFileStream can't open a file from a network drive (SMB or AFP), if I already opened this file in another instance of the same app (or another Lazarus app) using TFileStream:
Result:=TFileStream.Create(UTF8Encode(FN), fmOpenRead or fmShareDenyWrite);
However I can open this file in another app on Mac (VLC player).
I correctly set access parameters, but it seems that TFileStream locks a file after openning and another app can't open it with TFileStream. This problem doesn't occur with a local file.
I attach a simple test app.
UPDATE. I tried to replace TFileStream with functions from
FpOpen and these new functions work fine to read the same file from SMB or AFP network from two apps.
Lazarus 2.0.10 / FPC 3.2.0. macOS Big Sur / Catalina