The content of the area of memory is saved. Unfortunately in your case the content is an address. You can of course save the address to a harddisk and load it later on. The big question then is, if that address is still valid, i.e. if the pointer points at a valid address with usefull data in it. The concept nevertheless does a lot of good, because you can save arbitrary data with it - with the exception for pointers, which can be loaded and saved as well, but do not make any sense after loading. Why don't you just use handles instead of the pointers?


Always learn from history, to be sure you make the same mistakes again...