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.
unodgs Messages: 1366 Registered: November 2005 Location: Poland
Ultimate Contributor
Of course you're right Koldo. But there was a deeper problem with Serialize (that's why most of the code is commented) - I must refresh my memory what was it . Anyway please keep your fix locally and I'll try ASAP to make Serialize method working again.
Of course you're right Koldo. But there was a deeper problem with Serialize (that's why most of the code is commented) - I must refresh my memory what was it . Anyway please keep your fix locally and I'll try ASAP to make Serialize method working again.