Question about #PB_File_SharedRead and #PB_File_SharedWrite on macOS

Just starting out? Need help? Post your questions and find answers here.
Quin
Addict
Addict
Posts: 1135
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Question about #PB_File_SharedRead and #PB_File_SharedWrite on macOS

Post by Quin »

The documentation states:
#PB_File_SharedRead : the opened file can be read by another process (Windows only).
#PB_File_SharedWrite: the opened file can be written by another process (Windows only).
But, what does "Windows only" mean? Does it mean that if I provide the constants on the mac they will be harmlessly ignored and used on Windows (like I'd expect), or do I have to CompilerIf check them?
Thanks!
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Question about #PB_File_SharedRead and #PB_File_SharedWrite on macOS

Post by Fred »

There are ignored as there is no such mode on linux/osx
Quin
Addict
Addict
Posts: 1135
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: Question about #PB_File_SharedRead and #PB_File_SharedWrite on macOS

Post by Quin »

Awesome, as I figured. Thanks Fred!
Post Reply