I don't think this is a bug, but how can I manage this situation:
bool TEclPrefIO::readPref()
{
vector<std::string> nodenames;
nodenames.push_back("sometext");
if (nodenames.size()>1)
std::string nix=nodenames[1];
return true;
}
int main()
{
TEclPrefIO tio;
if (!tio.readPref()) tio.writePref();
}
(the code is a bit rudimentary, but it should be enough to illustrate)
The debugger reacts now in such a way, that it does not even enter the readPref() but stops with a segmentation error. Is there something like a #ifdef to prevent this?