Ryan Pusztai wrote: (Mon, 26 Oct 2009 06:26:46 -0700) > It is not wlua.exe flashing the console. The os.execute() command in Lua is > doing that.
Indeed. I'd thought os.execute() launched whatever it pointed to directly, unless the command was dir or some other built into the Windows command interpreter, or was some other program that required a console anyway. I'd always used it whan already in a console window, hence the confusion. I thought I'd also used it in wxLua and NOT seen a console window appear briefly, but I just tested exactly for this and saw that it also does this. But wxExecute() doesn't, so I stay with wxLua. :) And now the thing that brought me back here having thought I'd be ok alone now... function Main() local IP=wx.wxIPV4address() IP:AnyAddress() IP:Service(80) local SKT=wx.wxSocketServer(IP,wx.wxSOCKET_NONE) print("Socket OK?",SKT:Ok()) FRAME=wx.wxFrame(wx.NULL,-1,"") FRAME:SetSize(432,310) FRAME:Centre() SKT:SetEventHandler(FRAME,wx.wxEVT_SOCKET) FRAME:Connect(-1,wx.wxEVT_SOCKET,function(E) print("!!!!!") end) FRAME:Show(true) end Main() That appears to run without error. Firefox can connect (as shown by Netstat -a) but I seem to be beaten by any attempt to connect a socket event. Right now I just want to flag that one has occurred, I'll sort out what kind once I have that. If someone can correct what I have here, please do. I need this because it lets me call SKT:Accept() on demand, thus avoiding freezing things up with waiting server sockets. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users