User forums > Using Code::Blocks
Crash when open project
rickg22:
OK here's more info.
--- Code: ---
void ClassBrowser::Update()
{
if (m_pParser)
{
wxArrayString treeState;
::SaveTreeState(m_Tree, m_pParser->GetRootNode(), treeState);
m_pParser->BuildTree(*m_Tree);
::RestoreTreeState(m_Tree, m_pParser->GetRootNode(), treeState);
}
else
m_Tree->DeleteAllItems();
}
--- End code ---
Try adding debugging "breakpoints" in each relevant line, like wxmessageboxes combined with printf's to print the values of pointers.
Also, I have a hunch. Might help, might not.
--- Code: ---
ClassBrowser::ClassBrowser(wxNotebook* parent, NativeParser* np)
: wxPanel(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL | wxCLIP_CHILDREN),
m_Parent(parent),
m_NativeParser(np),
m_pParser(0L)
--- End code ---
Try adding a m_Tree(0L) before m_pParser(0L). I've had problems with uninitialized members before, even if they're initialized inside the constructor. I won't guarantee this will work, but it might help. Who knows.
NuklearZelph:
i have done some wxWidgets programming and tried to compile Turbo Pad (an sf.net project)
and found it to be entirely incompatible with wx 2.5 & 2.6. i figured out it was built for 2.4.
not that that matters so much, but that there was an incompatability between the versions.
2.4 seems to have different sizers than the newer ones. this is probably only one difference,
but in that context, shows to some extent why code::blocks doesn't want to compile on a
different wx version than it was built for.
Navigation
[0] Message Index
[*] Previous page
Go to full version