As the title says... Chat on...

User avatar
By Mikejstb
#10649 I do declair it each time like
conn=net.createConnection(net.TCP,0)

Should I somehow dispose or delete it each time? I'm not even sure how that might be done...
User avatar
By dpwhittaker
#10664 Well, conn=nil will delete the reference and let the garbage collector clean it up if there are no other references to it, but that is not your problem. Can you post the rest of your code (preferably in a new thread so we don't keep hijacking this one)?
User avatar
By Mikejstb
#10732 Sorry for the hijack.
I'll just close admitting I'm a no I - my whole problem was that I didn't realize that Lua is event driven and all functions seem to be threaded.
I put in some semaphores and my code is now doing what I hoped for.
Thanks for your help & patience