Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Crash where I could need some help (RPT)
thomas:
--- Quote from: Pecan on June 20, 2006, 02:07:31 pm ---My guess: m_Files is not checked to see if it's 0x0. That's usually the cause of crashes in wxWidgets calls like this.
--- End quote ---
Right. Except it is an auto object, not a pointer.
Der Meister:
Thus we should perhaps check if this is valid. Because m_Files can only be invalid if the whole instance is invalid. Did anyone check this (must be an error a few levels above in the call-stack)?
MortenMacFly:
Thomas!
It happend again (horray :?). With your patch applied the same crash happened when I opened a quite large workspace with 3 projects (large in number of files). Thi I immediately tried to compile and crash boom bang!
Please notice that I've disabled the codecomletion plugin so this isn't the source.
This time the crash happens in the line:
--- Code: ---FilesList::Node* node = m_Files.GetFirst();
--- End code ---
again in the method bool cbProject::SaveAllFiles().Alltogether this really looks like m_Files could be a null pointer under certain customstances... What to do? Because checking all access to m_Files for a NULL pointer seems a bad solution. Why can m_Files be NULL at this point?! I don't get it...?!
With regards, Morten.
Navigation
[0] Message Index
[*] Previous page
Go to full version