luasocket & vs2010 I got an error


#1

Hello, everyone:
I use luasocket for http request,bug i got an error,like this:
Unhandled exception at 0x0141bfdf in HelloLua.exe: 0xC0000005: Access violation writing location 0x54429b28.

b, c, h = http.request(“http://www.example.com/private/index.html”)
this is ok。

but if I do this:

http.request{
url = “http://www.cs.princeton.edu/~diego/professional/luasocket/http.html”,
sink = ltn12.sink.file(io.stdout)
}

I’ll get an error

First-chance exception at 0x0141bfdf in HelloLua.exe: 0xC0000005: Access violation writing location 0x54429b28.
Unhandled exception at 0x0141bfdf in HelloLua.exe: 0xC0000005: Access violation writing location 0x54429b28.
First-chance exception at 0x0141bfdf in HelloLua.exe: 0xC0000005: Access violation writing location 0x54429b28.
Unhandled exception at 0x0141bfdf in HelloLua.exe: 0xC0000005: Access violation writing location 0x54429b28.

Any suggestions?