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 


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to