mattn / go-adodb

Microsoft ActiveX Object DataBase driver for go that using exp/sql
http://mattn.kaoriya.net/
MIT License
142 stars 36 forks source link

utf16 error #2

Closed hoysoft closed 10 years ago

hoysoft commented 12 years ago

run examples Fail (windows7 x64 )

throw: markallocated: bad pointer

goroutine 1 [running]:
unicode/utf16.Encode(0xf840037a40, 0x500000005, 0xf840037a40, 0x500000005, 0x1, ...)
 C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist119677522/go/src/pkg/unicode/utf16/utf16.go:64 +0x7f
syscall.StringToUTF16(0x4d48ac, 0x100000004, 0x2a1a30, 0x0, 0x40f49e, ...)
 C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist119677522/go/src/pkg/syscall/syscall_windows.go:57 +0x6f
syscall.StringToUTF16Ptr(0x4d48ac, 0x4, 0x1, 0xf84004c8e0, 0x100000001, ...)
 C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist119677522/go/src/pkg/syscall/syscall_windows.go:73 +0x32
github.com/mattn/go-ole.getIDsOfName(0x52dc888, 0x2a1b30, 0x100000001, 0x0, 0x0, ...)
 C:/Go/src/pkg/github.com/mattn/go-ole/ole.go:622 +0xd3
github.com/mattn/go-ole.(_IDispatch).GetIDsOfName(0x52dc888, 0x2a1b30, 0x100000001, 0x0, 0x0, ...)
 C:/Go/src/pkg/github.com/mattn/go-ole/ole.go:196 +0x73
github.com/mattn/go-ole/oleutil.CallMethod(0x52dc888, 0x4d48ac, 0x6d65744900000004, 0x2a1cd8, 0x100000001, ...)
 C:/Go/src/pkg/github.com/mattn/go-ole/oleutil/oleutil.go:46 +0xc1
github.com/mattn/go-adodb.(_AdodbRows).Next(0xf8400563f0, 0xf8400378a0, 0x200000002, 0x0, 0x0, ...)
 C:/Go/src/pkg/github.com/mattn/go-adodb/adodb.go:291 +0x44d
database/sql.(*Rows).Next(0xf84002f2a0, 0x4e43f4, 0x656c657300000018, 0x0)
 C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist119677522/go/src/pkg/database/sql/sql.go:912 +0x103
main.main()
 D:/My Design/go/src/testdb/main.go:58 +0x889

goroutine 2 [syscall]:
created by runtime.main
 C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist119677522/go/src/pkg/runtime/proc.c:221
> exit code 2, process exited normally.

mattn commented 12 years ago

Which example did you run?

mattn commented 11 years ago

Is this issue closable?

mattn commented 10 years ago

too many days was passed