[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaSocket 2.0b2 troubles
- From: Mike Pall <mikelu-0408@...>
- Date: Fri, 27 Aug 2004 22:05:05 +0200
Hi,
Adam D. Moss wrote:
> The luaL_checklstring() correctly gets the string and its
> size, but (start, end) are always (0, 0), so sendraw()
> never gets called, so sock_send() never gets called. Also,
> 'top' is 2.
Strange. At least top==2 is ok because only the socket and the string to
send should be on the stack. This also means that the lua_isnoneornil() test
in luaL_optnumber() should be successful and the default numbers should
be returned (i.e. 1 and -1).
This sounds a bit like you have different compiler options set while
compiling the base library and LuaSocket. Did you change the type of
lua_Number and forgot to set the defines while compiling LuaSocket?
This may lead to a silent prototype vs. ABI mismatch.
If that's not the case then only stepping through the lines/instructions
with a debugger may give you further hints.
Bye,
Mike