wxX11 crashes

Gordon.Schumacher at seagate.com Gordon.Schumacher at seagate.com
Mon Jul 2 16:08:02 PDT 2007


Gordon.Schumacher at seagate.com wrote on 06/28/2007 04:50:57 PM:

# Line 323 is the one that blows up, ultimately in wxWindow::Refresh:
#
# 460 for ( wxWindowList::iterator i = children.begin(); i !=
children.end();
# ++i )
# 461 {
# 462    wxWindow *child = *i;
# 463    // only refresh subcontrols if they are visible:
# 464    if ( child->IsTopLevel() || !child->IsShown() || child->IsFrozen()
)
#
# Line 464 blows up because "child" is NULL.

Let me take the silence as a suggestion that I have provided
the wrong information...

I am calling the following code from my frame constructor:
m_buttonBar = new wxToolBar(this, -1, wxDefaultPosition, wxDefaultSize);

This causes a crash under wxX11 (but works under wxGTK and Win32).
Am I doing something obvious wrong here?

It is acting perhaps like it's trying to access the window before
it's been created?  I'm grasping here.





More information about the wx-users mailing list