On 9 Mar 2004 at 2:56, Frank Heckenbach wrote:
Neil Santos wrote:
[....]
- The loading methods must note that all fields are uninitialized (whether or not you zeroed them). E.g., if there are string fields, they can't just assign a value to them (not even ''), but must call `Initialize' for each field, or load the field as a blob from the file if possible (for strings, it would be possible, if they were stored as such).
It is a bit of work, but the most tricky parts can be written in a rather general fashion, so it would be a one-time work if someone is interested to do it ...
The FreeVision objects unit (which I ported to GPC) has TStream objects of course, and all objects descending from TObject are streamable. So much of the work has already been done. The objects unit (full sources) can be obtained from here: http://www.gnu-pascal.de/contrib/chief/objects/
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/