Hi all,
I am trying to find the reason why my apps is so unstable in win32 and found which could be a bug, not sure it is in wxLua or lua or even wxWidgets. I will test with pure wxWidgets to see and post here later on.
I have such simple script to test
f=wx.wxFrame(wx.wxNull, -1, "Test")
b=wx.wxButton(f, -1, "Test")
f:ConnectEvent(-1, wx.wxEVT_COMMAND_BUTTON_CLICKED, function (event)
local d=wx.wxDialog(f,-1,"Test")
d:ShowModal(true)
end)
f:Show(true)
Now I click the buton ; show the dialog and close the dialog, Run taskmgr in win32 to see the memory usage is slowly insreasing after each time and never reduced. Until the memory usesage is about 20Mb the application crashed,. Sometimes it freezes, need to kill it.
If you have much memory then it takes much longer to crash it, it seems the problem is related to the garbage collector in lua when it tries to clean up the grabage. This is serious problem ; happen both with version 2.6.2.0 I will test the snapshot tonight and see.
Cheers
S.KIEU
On Yahoo!7
360°: Your own space to share what you want with who you want!
_______________________________________________ Wxlua-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wxlua-users
