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.
a new wxGrid control in wxPanel would show alert dialog or exit codeblocks