U++ Forum - RDF feed
https://www.ultimatepp.org/forums/
GridCtrl Serialize problem and solution
https://www.ultimatepp.org/forums/index.php?t=rview&goto=28733&th=5526#msg_28733
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.]]>koldo2010-09-14T09:36:57-00:00Re: GridCtrl Serialize problem and solution
https://www.ultimatepp.org/forums/index.php?t=rview&goto=28816&th=5526#msg_28816
]]>koldo2010-09-17T21:12:31-00:00Re: GridCtrl Serialize problem and solution
https://www.ultimatepp.org/forums/index.php?t=rview&goto=28820&th=5526#msg_28820
. Anyway please keep your fix locally and I'll try ASAP to make Serialize method working again.]]>unodgs2010-09-17T22:45:44-00:00Re: GridCtrl Serialize problem and solution
https://www.ultimatepp.org/forums/index.php?t=rview&goto=28826&th=5526#msg_28826
unodgs wrote on Sat, 18 September 2010 00:45
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.