From: Klaas H. <db...@nl...> - 2008-01-07 13:44:38
|
Hi John, I managed to change the wxLuaCan sample to create the same error. If you unpack the source code in the attached file, to apps/wxluacan/src, and run the sample, you get it. The two pointers are: wxlLuaCanCmd* wxlLuaCanCmd1; wxlLuaCanCmd* wxlLuaCanCmd2; And in wxluacan.i they are wrapped like here: %class %delete %noclassinfo wxlLuaCanCmd, wxCommandProcessor %define_pointer wxlLuaCanCmd1 wxlLuaCanCmd( wxlCan* canvas, int maxCommands = -1 ) void MoveObject( int index, double x, double y ) %endclass %class %delete %noclassinfo wxlLuaCanCmdDer, wxlLuaCanCmd %define_pointer wxlLuaCanCmd2 wxlLuaCanCmdDer( wxlCan* canvas, int maxCommands = -1 ) %endclass Stack at crash time is: luaO_rawequalObj(const lua_TValue * 0x4c6d97c7, const lua_TValue * 0x00f77f48) line 73 + 6 bytes luaH_get(Table * 0x011d4538, const lua_TValue * 0x00f77f48) line 484 + 16 bytes luaH_set(lua_State * 0x00f77c58, Table * 0x011d4538, const lua_TValue * 0x00f77f48) line 495 + 13 bytes lua_rawset(lua_State * 0x00f77c58, int -3) line 673 + 37 bytes wxLuaBinding::DoRegisterBinding(const wxLuaState & {...}, int 1) line 1192 + 11 bytes wxLuaBinding::RegisterBinding(const wxLuaState & {...}) line 986 wxLuaState::RegisterBindings() line 2729 wxLuaState::Create(lua_State * 0x00f77c58, int 2) line 2262 wxLuaState::Create(wxEvtHandler * 0x00f63c40, int -1) line 2157 + 14 bytes wxLuaState::wxLuaState(wxEvtHandler * 0x00f63c40, int -1) line 657 + 75 bytes MyFrame::MyFrame(wxWindow * 0x00000000, int -1, const wxString & {...}, const wxPoint & {...}, const wxSize & {...}, long 541072960) line 94 + 17 bytes MyApp::OnInit() line 320 + 107 bytes wxAppConsole::CallOnInit() line 76 + 28 bytes wxEntryReal(int & 1, char * * 0x00f649b8) line 440 + 25 bytes wxEntry(int & 1, char * * 0x00f649b8) line 209 + 13 bytes wxEntry(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, HINSTANCE__ * 0x00000000, int 1) line 386 + 13 bytes WinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00151f16, int 1) line 45 + 24 bytes WinMainCRTStartup() line 330 + 54 bytes KERNEL32! 77e735dd() I think this makes it much easier to find for you, Klaas -- Unclassified |