We are using Colibri Vf61 with Qt and linux 2.7 for our application development. We are saving some parameters as Binary file and Operation log as Text File. We are facing following issue:
Randomly the File size of above mentioned binary file and Text file changes to zero on ‘power off’ and ‘power on’ of the system (without using shutdown or reboot). This scenario does not happen when we execute a shutdown procedure or reboot procedure. After a successful file write operation we had verified the size as valid,but on turn off and restart the size will be shown as zero and data will be lost.
The Attached File contains the Code we use to write the Binary File link text.
Please suggest a resolution for this issue,We feel some how the OS is removing the File data that is written from User Space.