I have run into a curious problem with the following code
Code: Select all
/**
* Col labels are saved in the INI file as a string of strings separated with '|'
*/
void MyFrame::RestoreColLabels()
{
wxString token; <<< confirmed for debug & release value
wxString wsSource = g_iniPrefs.data[IE_MAIL_GRID_COL_LABELS].dataCurrent.wsVal; <<< is: Drop|Status|Size|From|Subject|To|Date|Account
m_wasColLabels.Clear();
wxStringTokenizer tokenizer( wsSource, "|", wxTOKEN_RET_EMPTY );
size_t nTokens = tokenizer.CountTokens(); <<<<< confirmed count = 8 for debug or release
while ( tokenizer.HasMoreTokens() )
{
wxString token = tokenizer.GetNextToken();
// process token here
m_wasColLabels.Add( token );
}
}
Code: Select all
Labels=Drop|Status|Size|From|Subject|To|Date|Account
When I switch the app to run the release version, all tokens are returned empty