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 |
|
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
|
|
|
Goto Forum:
Current Time: Sat Apr 20 11:30:40 CEST 2024
Total time taken to generate the page: 0.02530 seconds
|