On 2/27/06, Marcos <[EMAIL PROTECTED]> wrote:
> I'm using wxlua for many years.

Great.

> I have a problem on using luasocket 2.0.
>
> Can I load a lua dll module with require?
> ---- script
>
> dofile([[D:\lua\lua5\5.0\bin\compat-5.1.lua]] )
> local http = require("socket.http")
> b, c, h = http.request("http://www.lua.org";)  print(b,c,h)
>

I haven't tried this myself.

> With lua.exe it's ok.
> But with wxlua.exe I get errors.
>
> What is wrong?

The error dialog you get (IIRC) is a generic MSVC dialog saying that
someone is trying to write past the end of some allocated memory.

Did you compile wxLua and luasocket yourself?
What wxLua are you using, the cvs version from sourceforge or the original?
Can you run it in a debugger?
Do you get the same error for other functions in luasocket or just http.request?

I see you load compat-5.1.lua, wxLua is based on 5.0.2, has luasocket
been compiled for 5.1?

If you don't compile it yourself you may want to try this newer version out.
http://wxlua.sourceforge.net/wxLua-2.6.2.1-setup.exe

I hope my questions can give you some ideas of how to solve this.
Unfortunately the text in the dialog isn't enough to say anything
definitively.

John Labenski


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to