Hi,
I'm developing application with newest code::blocks NB and wxWidget 2.8.
I came across the problem recently where connected event handlers (
connect() ) killed whole software every time. I tried to look for a solution for several days but could not find any software related to this problem. Finally I noticed that problem disappeared when I replaced Connect() functions like:
Connect(ID_LISTBOX1,wxEVT_COMMAND_LISTBOX_SELECTED,(wxObjectEventFunction)&MyFrame::OnListBoxHoleSelect);
to
Connect(ID_LISTBOX1,wxEVT_COMMAND_LISTBOX_SELECTED,wxCommandEventHandler(MyFrame::OnListBoxHoleSelect));
So looks that typecasting causes all my problems. Now everything work fine, but.. Code::Blocks change those line every time when I change something from my UI (wxSmith). This is very annoying. Is anyone else faced same kind of problem? Is it possible to change code::blocks to use
wxCommandEventHandler instead of typecasting ?
BR,
Jussi