Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » (Possible) Serialization issue
Re: (Possible) Serialization issue [message #19001 is a reply to message #18994] Tue, 04 November 2008 08:30 Go to previous messageGo to previous message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

mrjt wrote on Mon, 03 November 2008 17:09


1- Don't use StoreToFile (easiest)
I continued trying to avoid LoadFromFile() with such a testcase:
	String filenameConfig = "../../"+root+"/config";
	LoadFromFile(site, filenameConfig); // config is OK

	FileOut fOut;
	if (fOut.Open(filenameConfig)) // config is OK
	{
		site.Serialize(fOut);
		fOut.Close();
	}

	FileIn fIn;
	if (fIn.Open(filenameConfig))
	{
		site.Serialize(fIn);  // config corrupted!
		fIn.Close();
	}


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.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Core/Ol_Set.cpp should to change!
Next Topic: [solved!] XML serialization and relative paths
Goto Forum:
  


Current Time: Tue Jun 17 13:37:17 CEST 2025

Total time taken to generate the page: 0.04554 seconds