Object Serialization
BlitzMax Forums/BlitzMax Programming/Object Serialization
| ||
Does it exist? I found bruceys mod called Persistence but there doesn't seem to be a download. Thanks |
| ||
I think you have to use svn to get it from the googlecode repository. be warned that it doesn't work with multithreaded apps. (it is an awesome module though) |
| ||
Awesome thanks! |
| ||
doesn't work with multithreaded apps What? Hope you mean: it does not serialize threaded data. This is in most cases not problematic as you avoid saving temporary data (eg unprocessed network packets) but eg gamestates (player names, money, ...) which is managed by the main thread. bye Ron |
| ||
There's a major bug in bah.Persistence. If you deserialize two or more files/objects then you'll get errors as the reference list isn't cleared between deserializations. Here is a version I fixed up for my own use. I hope Brucey doesn't mind me posting that. |
| ||
Thanks... just updated my library - will test it as soon as I rewrote my save/load-parts. bye Ron |
| ||
Are you sure? According to the code in SVN, it calls Free() often, and always clears the objectMap. .. which is true since July 2011, according to the log ;-) |
| ||
Fair enough. I stand corrected then. It's a great module BTW. Thanks. |