wxX11 crashes

Vadim Zeitlin vadim at wxwidgets.org
Mon Jul 2 16:17:41 PDT 2007


On Mon, 2 Jul 2007 17:08:02 -0600 Gordon.Schumacher at seagate.com wrote:

> 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...
 
 FWIW I did post a reply, albeit probably not a very helpful one:

	http://article.gmane.org/gmane.comp.lib.wxwidgets.general/53416

Didn't you receive it?

> 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?

 Probably not. The ritual question: does the toolbar sample work for you?

 Regards,
VZ





More information about the wx-users mailing list