Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Crash when trying to build a project quickly after opening
MortenMacFly:
Dear all,
unfortunaterly I've got a crash that did not happen the first time to me. But this time I've saved the rpt file and attached it to this post. It seems the crash occurs when cbProject::SaveAllFiles() is called before the build process starts. What I did was opening a small project project using the menu and then immediately (~1sec after) tried to build the project. Please notice that this is a really small project so it shouldn't take too long to load.
Anyway, the line where the crash occurs seems to be:
--- Code: --- ProjectFile* f = node->GetData();
--- End code ---
...where I cannot see an issue since node is "verified" using while(node) before. I hope this post will help in anyway - as I said before this crash happend to me several times before but I don't see a way to reproduce this.
With regards, Morten.
Ps.: Version 1.0 revision 2487 () gcc 3.4.5 Windows/unicode, wx2.6.2.
[attachment deleted by admin]
thomas:
Yiannis: at the risk of being a poophead again, are you really, really sure this wxExecute is harmless?
I see wxToolBarBase11OnLeftClick in the call stack followed by 2 dozen ProcessEvent calls and finally a crash in a strange location that seems to make no sense.
This looks strangely familiar...
thomas:
Martin: please try whether you can reproduce the problem after applying this patch.
(it implements a synchronous wrapper around asynchronous wxExecute calls that does the same thing as the original synchronous wxWidgets code, except for using safe wxYields)
[attachment deleted by admin]
mandrav:
--- Quote from: thomas on May 23, 2006, 04:41:55 pm ---Yiannis: at the risk of being a poophead again, are you really, really sure this wxExecute is harmless?
--- End quote ---
It was harmless for the other issue. For this, I don't know. Actually I don't quite remember if this is called on plugin initialization only or on project-load...
thomas:
--- Quote from: mandrav on May 23, 2006, 05:53:55 pm ---Actually I don't quite remember if this is called on plugin initialization only or on project-load...
--- End quote ---
Project load. You can easily verify by applying my patch and commenting out the Yield: the application will start fine but will hang if you load a project. :)
Navigation
[0] Message Index
[#] Next page
Go to full version