sebbomann Posted April 4, 2013 Posted April 4, 2013 Hi, I've tried to export some data from the simulation via a TCP socket: function LuaExportStart() package.path = package.path..";.\\LuaSocket\\?.lua" package.cpath = package.cpath..";.\\LuaSocket\\?.dll" socket = require("socket") host = host or "127.0.0.1" port = port or 8080 [color="Orange"]c = socket.try(socket.connect(host, port))[/color] c:setoption("tcp-nodelay",true) end The script crashes on creation of the socket: # -------------- 20130404-142657 -------------- # C0000005 ACCESS_VIOLATION at F50815C5 00:00000000 00000000 00000000 0000:00000000 F50815C5 001EE610 0000:00000000 ?pop@Config@Lua@@QEAA_NPEAVVec4f@osg@@@Z()+245 FA566F97 001EE650 0000:00000000 lua_yield()+507 FA567029 001EE680 0000:00000000 lua_yield()+599 FA565C22 001EE6B0 0000:00000000 lua_setlocal()+D92 FA5625E9 001EE6E0 0000:00000000 lua_error()+9 F74746CE 001EE710 0000:00000000 luaopen_socket_core()+35CE FA566F97 001EE750 0000:00000000 lua_yield()+507 FA574A86 001EE910 0000:00000000 luaS_newlstr()+44C6 FA567038 001EE940 0000:00000000 lua_yield()+5A8 FA5661BF 001EEAC0 0000:00000000 lua_getinfo()+39F FA56721E 001EEB00 0000:00000000 lua_resume()+10E FA562290 001EEB50 0000:00000000 lua_pcall()+60 F5081B74 001EEBA0 0000:00000000 ?call_func@Config@Lua@@AEAA_NPEBDPEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HH@Z()+D4 402F8882 001EED40 0000:00000000 402CED2E 001EEE70 0000:00000000 402D1156 001EF160 0000:00000000 402C9AD2 001EF3C0 0000:00000000 F50A536A 001EF3F0 0000:00000000 ?sendOutputSymbol_@FSM@Common@@AEAAXI@Z()+2A F50A6025 001EF420 0000:00000000 ?enterToState_@FSM@Common@@AEAAXI@Z()+B5 F50A72F1 001EF450 0000:00000000 ?onSymbol_@FSM@Common@@AEAAXI@Z()+1B1 F50A73DE 001EF4A0 0000:00000000 ?checkSymbolsQueue@FSM@Common@@QEAAXXZ()+AE 402CD920 001EF500 0000:00000000 402E6DC4 001EF530 0000:00000000 402E6C9B 001EF560 0000:00000000 40376BC8 001EF5D0 0000:00000000 40378018 001EFAC0 0000:00000000 4037AB9F 001EFB70 0000:00000000 7725652D 001EFBA0 0001:0001552D C:\Windows\system32\kernel32.dll BaseThreadInitThunk()+D 7738C521 001EFBF0 0001:0002B521 C:\Windows\SYSTEM32\ntdll.dll RtlUserThreadStart()+21 Any ideas at what I am doing wrong? i5-3570K, 16GB DDR3, GTX660Ti, SSD, Win7 64Bit Warthog Base + Cougar Stick, Cougar Throttle (el cheapo HAL-Mod), MFG Crosswind Rudder Pedals, TrackIR 5 Blackshark 1&2, A-10C, P-51, UH-1H, Mi-8MTV2, F86-F, MiG-21Bis, Combined Arms, FC3, Falcon BMS, Rise of Flight
Recommended Posts