Bugs item #3046104, was opened at 2010-08-16 10:36 Message generated for change (Tracker Item Submitted) made by clino You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745324&aid=3046104&group_id=140042
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interface (example) Group: v1.0 (example) Status: Open Resolution: None Priority: 5 Private: No Submitted By: clino (clino) Assigned to: Nobody/Anonymous (nobody) Summary: In coroutine, can not get right value of a Extending classes Initial Comment: I post this bug in http://article.gmane.org/gmane.comp.lib.wxwidgets.wxlua.user/2615 This bug can be reproduced in windows/ubuntu. I have just encountered this kind of issue,using wxlua in Lua for windows (LuaForWindows_v5.1.4-36).I extend class using the method mentioned in "Extending classes" of http://wxlua.sourceforge.net/docs/wxlua.html. In the attatchment of file "veryminimal.wx.wlua",I wrote a coroutine function in a button handler. """ function mainframe_on_button(self,event) print("---outside coroutine") print(self) print(self.button) print(self.textEntry) local function test_co_func() print("---inside coroutine") print(self) print(self.button) print(self.textEntry) end self.co = coroutine.create(test_co_func) local r,e = coroutine.resume(self.co) if (r == false) then print(r,e) end end """ And the output is: """ ---outside coroutine userdata: 016454F8 [wxFrame(01645138, 186)] userdata: 016462F0 [wxButton(01646160, 109)] userdata: 01645D98 [wxTextCtrl(01645BA0, 337)] ---inside coroutine userdata: 016454F8 [wxFrame(01645138, 186)] button textEntry """ Why can not access the right value in coroutine ? Thanks! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=745324&aid=3046104&group_id=140042 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users