[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Incorrect parameter issue when calling requre("socket.core") on Lua 5.1.2 + LuaSocket 2.0.2 in Windows
- From: p o <opluax@...>
- Date: Fri, 17 Apr 2009 18:47:40 +0900
Thank you Matthew.
I checked my build again however I could not find any error in my build process.
Also Dependency Walker does not show any errors.
I link only one lib for LuaSocket it is "ws2.lib" library.
Any other suggestion?
(Or how I can find root cause of this issue?)
2009/4/16 Matthew Paul Del Buono <firstname.lastname@example.org>:
>>--- script start ---
>>socket = require("socket")
>>--- script end ---
>>Error message: "The parameter is incorrect"
>>On line 13 in "socket.lua" which is "local socket =
> "The parameter is incorrect" is a Windows error message, not a
> Lua one (well, not directly at least). You're sure that you
> compiled the DLL correctly? I use a really nice free tool
> known as "Dependency Walker" (google it) to verify DLLs when
> I'm starting to have problems. Check that the exports are
> there and check that no errors are reported.
>>The target file "socket/core.dll" exist correct directory.
>>(because Lua can find "socket.lua")
>>Do you know how to solve this problem and what does this
>>Is it LuaSocket issue or dll build issue or Lua?
>>Please help me.
> The problem is loading the DLL, not with your Lua code.
> Whether that makes it a LuaSocket issue or a build issue I
> can't answer for sure, but I can say I haven't had trouble
> with LuaSocket myself so it's likely a build issue.
> -- Matthew P. Del Buono