Have not observed any such thing, and I couldn't guess why
GetCount() would crash, either (don't get me started on wxWidgets, lol).
However, we don't really need to know the count anyway. All we do is count down to zero and check whether it is really zero. This can be implemented more efficiently:
bool cbProject::SaveAllFiles()
{
bool feelGood = true;
FilesList::Node* node = m_Files.GetFirst();
while(node)
{
ProjectFile* f = node->GetData();
if (!Manager::Get()->GetEditorManager()->Save(f->file.GetFullPath()))
feelGood = false;
node = node->GetNext();
}
return feelGood;
}
That will 99.9% certain not fix your problem (as the call to
GetCount() actually
cannot be the cause), but try it nevertheless