<p>Has anyone run into issues serializing components into a file and reading them back, specifically in the area where the component vendor upgrades the VCL components.  For example a file serialized with DelphiX and then years later read back with delphiY.  Do the serialization formats change and if so what can be done to prevent errors reading in the componets when upgrading.</p>

[{'answer_id': 73990, 'author': 'Birger', 'author_id': 11485, 'author_profile': 'https://Stackoverflow.com/users/11485', 'pm_score': 0, 'selected': False, 'text': "<p>Formats will defintely change, as vendors will add features to their components. Serialization simply loops over all published properties and saves them to a stream. When they are read back, each of the properties that is read from the stream will be set back to the component. If the property does not exist anymore, you have a problem. I don't think you can do anything about that besides some basic exception handling.</p>\n\n<p>Best way to guarantee compatibility is to do your own serialization.</p>\n"}, {'answer_id': 74244, 'author': 'Peter', 'author_id': 12833, 'author_profile': 'https://Stackoverflow.com/users/12833', 'pm_score': 0, 'selected': False, 'text': '<p>Thanks for the reply.  I was trying to avoid custom serialization and take advantage of the each component serialization technique, but with the lack opf any way to "patch" an upgrade to a new component format I guess custom serialization is the only method.</p>\n'}, {'answer_id': 74300, 'author': 'Lars Fosdal', 'author_id': 10002, 'author_profile': 'https://Stackoverflow.com/users/10002', 'pm_score': 3, 'selected': True, 'text': '<p>The built-in RTTI based system for serializing published properties is vulnerable to changes in the components.  Going forwards is manageable as long as old properties are kept in new objects.  I.e. you leave the property interface as is, but can toss away the contents if you like. Going backwards is worse - as a newer version saved property can\'t be opened in older version load, and that will be a problem.</p>\n\n<p>There are components / libs (<a href="http://www.torry.net/quicksearchd.php?String=RTTI&amp;Title=Yes" rel="nofollow noreferrer">http://www.torry.net/quicksearchd.php?String=RTTI&amp;Title=Yes</a>) that can add serialization in XML format and this may help a bit as you can choose to skip content you don\'t know.</p>\n\n<p>You still need to be mindful about how you design your published content and should probably find a way to "ignore but propagate" content that your current version don\'t understand.  This will allow you to open and change a file in a newer format while attempting to keep newer attributes, instead of stripping them.</p>\n'}]
['https://Stackoverflow.com/questions/73895', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/12833/']