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 » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl Serialize problem and solution
GridCtrl Serialize problem and solution [message #28733] Tue, 14 September 2010 11:36 Go to previous message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello unodgs

Using Serialize with GridCtrl I get an exception the first time the app. is opened.

The reason is that in GridCtrl::Serialize() function, there is this:

	else
	{
		int tc;
		s % tc;
		for(int i = 1; i < tc; i++)
		{
			//String alias;
			//s % alias;
			//int n = aliases.Find(alias);
			int id;
			s % id;
			//if(id >= 0 && id < total_cols)
			s % hitems[id];
		}
	}


As the first time, id value is undefined so I get an exception in s % hitems[id];.

Uncommenting line //if(id >= 0 && id < total_cols), the problem is solved.


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: GridCtrl - how to perform multiselect via CTRL like in ArrayCtrl
Next Topic: It's a little strange for zooming GridCtrl column layout width
Goto Forum:
  


Current Time: Sat Apr 20 11:30:40 CEST 2024

Total time taken to generate the page: 0.02530 seconds