Untitled
public cpp v1 · immutablebool MyApp::OnInit(){ wxBitmap bmp(64, 64); wxMemoryDC dc; dc.SelectObject(bmp); dc.SetBrush( *wxTRANSPARENT_BRUSH ); // The following causes problems dc.SetBrush(wxNullBrush); dc.SelectObject(wxNullBitmap); // And now, the failure. Both of the following calls will assert, regardless of order. dc.SelectObject(bmp); dc.SetBrush( *wxTRANSPARENT_BRUSH ); return false;}