mrjt Messages: 705 Registered: March 2007 Location: London
Contributor
Mindtraveller
Even without using StoreToFile() I can`t use simple Serialize(), and U++ forces user to use StoreToFile/LoadFromFile. And it looks like Serialize(FileOut) uses the same magic header as Serialize(FileIn) doesn`t.
I don't see how you're forced to use StoreToFile/LoadFromFile, I actually rarely do. And I can assure you that Serialize does work and that there are no magic headers.
I appreciate your frustration, but I'm pretty sure that the problem here is something in your code.
- In your test above, there are no checks on 'fOut.Open(filenameConfig)' failing. This would cause fin to read garbage.
- Check your serialization. If StoreToFile/LoadFromFile works then this should be fine but a simple test would be: