----- Original Message -----
From: "website reader" <[email protected]>
To: "PLUG" <[email protected]>
Sent: Tuesday, June 17, 2014 8:45:25 PM
Subject: [PLUG] fail safe programming question

Has anyone had expeience with C++ and writing fail-safe code?  My naive
approach is to copy object values to a folder on the hard drive, so that if
the program crashes, I can have key values saved.

However, I am finding upon bringup, that naively creating the C++ objects
all over again is wiping the crucial saved data.

I am curious if anyone has done this type of coding?

I would like to get in touch.  Thanks

Randall
_______________________________________________


There are two ways to look at the problem, first is persistence, i.e. copy your 
objects to disk as objects.  Google for C++ object persistence and you will 
probably find something.  In Java your objects need to be created as 
serializable, I do not know what the equivalent in C++ is.
Second is to map an object to a database, so if you change and data elements 
they are automatically updated in the database.  There are many libraries out 
there for doing both approaches.
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to