Menu

#1506 a new wxGrid control in wxPanel would show alert dialog or exit codeblocks

Undefined
invalid
nobody
wxGrid (1)
Bug_Report
2024-12-04
2024-11-29
yanjx
No

my codeblocks edition is 20.03,wxWidgets is 3.2.6。when i pull a wxGrid control into wxPanel,and changed it's size, show alert dialog as follow:
wxWidgets Debug Alert" dialog:
....\include/wx/generic/grid.h(1522): assert "idx >=0 && idx < m_numCols" failed in GetColPos():invalid column index.
but this alert dialog never showed in old codeblocks edition.I don't know why?
Pay attention:: I just operated in Resources , was not debugging my program.

Discussion

  • Miguel Gimenez

    Miguel Gimenez - 2024-11-29

    wxWidgets started showing alerts in wx3.0 whenever an incoherency was detected. 20.03 was released with wx2.8.12, so it did not show alerts. I do not know why you are using 20.03 linked with 3.2.6, but this mixing is the root cause.

    The current nightly (and the upcoming release), linked with wx3.2.6, have these alerts fixed (mostly).

     
  • Miguel Gimenez

    Miguel Gimenez - 2024-11-30
    • status: open --> invalid
     
  • Sergio Ferrari

    Sergio Ferrari - 2024-12-03

    Perhaps, many people still use CB 20.03 as it is the latest version you published with an installer...

     
  • yanjx

    yanjx - 2024-12-04

    thanks a lot for reply.
    because i have not upgraded code::blocks and wxWidgets for a long time. so when i want to upgrade them. i downloaded their latest version at the same time . I did not know their version not matching.

     

Log in to post a comment.