On Wed, Jun 4, 2008 at 5:58 PM, Eero Pajarre <[EMAIL PROTECTED]> wrote: > > I will let you know when I find out what was the problem. >
(I promised to tell, so here it comes) Actually I lied earlier, but I didn't do it on purpose... I said that I had changed my code to look like the code from Piotr. Actually my code looked like this: local tim=wx.wxTimer(frame); frame:Connect(wx.wxEVT_TIMER, Tick); tim:Start(200); And the problem is.... the word "local". When the code file is executed if the timer is not stored somewhere (like the globals table) it can be garbage collected. The difference between my application and the official wxLua application was that my application calls lua_gc after executing the lua file, and thus triggers the problem immediately. with wxLua the problem just remains hidden (for a while). Eero ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users