Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » File locking and Serialization
Re: File locking and Serialization [message #36243 is a reply to message #36237] Wed, 16 May 2012 12:03 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
nixnixnix wrote on Tue, 15 May 2012 18:46

Hi,

I am realising that I don't really know how File Streams and Serialization works.

In UPP is there a mechanism to lock a file while my app runs and then release it when I either close the app or load a new file please?

Also, there isn't much of a preamble to the Serialization section in the documentation. I thought I knew how that works but some of my users tell me that sometimes when openWind crashes it mangles the file that it was loaded from. This makes me think there might be more to Serialization than I realise. Or are they making it up? Smile



Well, this is only likely if it crashes during Serialize, or if Serialize has done something wrong before (and perhaps it crases BECAUSE files are mangled).

About locking, FileOut (used by serialization) is locking the output file by default.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Custom array Jsonize
Next Topic: CParser: proposal of new functions
Goto Forum:
  


Current Time: Tue May 21 17:17:47 CEST 2024

Total time taken to generate the page: 0.02474 seconds