G giada Member May 4, 2021 #1 Hi, i'm using WriteB4XObject/ReadB4XObject from RandomAccessFile library. I have a general doubt: if different part of code call simultaneously Read/write what's appen? Is my job to correct lock/unlock this or the library make this for me? Thanks for explanation
Hi, i'm using WriteB4XObject/ReadB4XObject from RandomAccessFile library. I have a general doubt: if different part of code call simultaneously Read/write what's appen? Is my job to correct lock/unlock this or the library make this for me? Thanks for explanation
Erel B4X founder Staff member Licensed User Longtime User May 4, 2021 #2 Tip: in most cases it is better to use File.WriteBytes / ReadBytes with B4XSerializator. These are atomic operations. Nothing will happen until writing is complete. Upvote 0
Tip: in most cases it is better to use File.WriteBytes / ReadBytes with B4XSerializator. These are atomic operations. Nothing will happen until writing is complete.
G giada Member May 4, 2021 #3 i use WriteB4XObject/ReadB4XObject because i need to read/write user defined types object... What's the best way? Upvote 0
i use WriteB4XObject/ReadB4XObject because i need to read/write user defined types object... What's the best way?
Erel B4X founder Staff member Licensed User Longtime User May 5, 2021 #4 giada said: What's the best way? Click to expand... Erel said: in most cases it is better to use File.WriteBytes / ReadBytes with B4XSerializator. Click to expand... Upvote 0
giada said: What's the best way? Click to expand... Erel said: in most cases it is better to use File.WriteBytes / ReadBytes with B4XSerializator. Click to expand...