Hello wp
Apologies for posting this post in the wrong place.
I have found that the same error occurs with the latest version of Delphi.
Everything makes me think that I'm on the wrong track.
But...
On Mac it is allowed to start files with blank spaces.
Linux and Windows do not.
' hello word' is OK for Mac
'space space space space hello word' is OK for Mac
Create Folder ' hola' is ok
Create Folder 'space space space etc hola' is ok
So, I see that Treeview fails at the Global level.
The solution I know is to remove all spaces from the beginning of the file on Mac.
Thanks for your help and forgive my recklessness.
Translated with
www.DeepL.com/Translator (free version)