On Thu, May 8, 2008 at 5:30 PM, Mateusz Czaplinski <[EMAIL PROTECTED]> wrote: > I'm trying to play with wxSocket, but have strange results. The > fragment of code which I attached works perfectly well when run from > wxluaedit.exe (2.8.7.0-MSW-bin) but hangs after displaying the first > message ("connect: true") when run from any other tool (wxlua, > wxluafreeze, also embedded using wxluafreeze). >
That is strange, what happens if you add a menu item (see minimal sample or even a button) so that you have to click it before connecting. I just tried it in Linux and you code works fine for all three programs. Maybe it's a MSW thing with initializing? wxLua and wxLuaFreeze, like typical C++ apps, run the Lua code to create the GUI in the wxApp::OnInit() function which is called before the mainloop is run. I wonder if this is why wxSocket works in wxLuaEdit and not the others. Let me know ------------------------------------------------------------------------- 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