Can a C++ expert explain how sel can hold the result of new EnvVariableListClientData(key, value)?
Edit: Or does the sequence operator "," do something different in C++ than I think it does?
I'm not a C++ expert but 'sel' has nothing to with 'new EnvVariableListClientData(key, value)':
int sel = lstEnvVars->Append(key + _T(" = ") + value, new nsEnvVars::EnvVariableListClientData(key, value));
invokes the overloaded 'Append' function with 2 arguments, there is no sequencing here. Sorry if I misunderstood you and you were talking about something else.
CB crashes at line 479 in 'envvars_common.cpp', I don't think 'Append' is the problematic part.