Hallo all,
I dynamically attach some menu items to one function using Connect():mpo_ObjUserData = new wx_EvtData(str_Language);
this->Connect( lo_MenuID,
wxEVT_COMMAND_MENU_SELECTED,
(wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&wx_Frame::OnSettingsLanguage,
(wxObject*)mpo_ObjUserData); This works fine, in the function the UserData object is read and processed.
But when closing the programm it fails in disconnecting the dynamic event table entries in line 1010 in event.cpp:if (entry->m_callbackUserData)
delete entry->m_callbackUserData; I tried to delete the UserData object before disconnecting but this didn't change anything. I'm confused. What can I do? Can I do something?
Any Ideas? Please... ;-)
Sabine
|