From: Victor B. <so...@te...> - 2012-09-23 15:17:21
|
I have found one of the asserts I get with 2.9.4: I am using local ind=0 while true do local item=sizer:GetItem(ind) if item==wx.wxNULL then break end ... end but when sizer has not items I get the assertion from sizer.cpp wxSizerItem* wxSizer::GetItem( size_t index ) { wxCHECK_MSG( index < m_children.GetCount(), NULL, wxT("GetItem index is out of range") ); return m_children.Item( index )->GetData(); } As I cant acces m_children whith GetChildren (was possible in 2.8.12) I can avoid the assertion for an empty sizer. I can only set DEBUG_FLAG=0 at building wxWidgets to avoid all assertions (docs say it avoids assertions but not the check_msg which is also done but outputs nothing??!!) Best Regards Victor Bombi |