I posted this error on the lua-aio's forum too, and the developer told me
the same. So, what I did is this: (example)
["$To:"] = function()
local _,_,nick,msg =
data:find("^%$To:%s%S+%sFrom:%s%S+%s%$<(%S+)>%s(.+)$")
collectgarbage("collect")
local evt =
wx.wxCommandEvent(wx.wxEVT_NULL,tCtrls["wxID_POSTEVENT"])
evt:SetString(nick.."|"..msg:gsub("|","|"):gsub("$","$"))
wx.wxPostEvent(tCtrls["app"],evt) -- Send the event to the main
thread
end,
This function is parsing the incoming data from the socket. This one works
well. So, I've rewritten all these parsing functions, and all use this way,
but it still freeze.
LUA-A-I-O is the LUA standalone, with some added functions:
- OnError() function to catch errors
- ThreadCreate() and ThreadDestroy() functions for multithreading
- ThreadNewMutex(), ThreadLockMutex() and ThreadUnlockMutex() for mutexes
The TCP socket listens on a new thread, so I've sent back the incoming data
for parsing to the main thread now, but I still get this error. Any other
idea? Maybe I did something wrong? Thanks in advance
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users