Closed Aquarian-Age closed 4 years ago
me too! `2020/08/03 16:33:34 Unhandled sciter event case: 32768 panic: Unhandled sciter event case: 32768
goroutine 1 [running]: log.Panic(0xc00011bb30, 0x2, 0x2) c:/go/src/log/log.go:351 +0xc2 github.com/sciter-sdk/go-sciter.goElementEventProc(0x2, 0x0, 0x8000, 0x194f5c0, 0x0) C:/Users/Administrator/go/pkg/mod/github.com/sciter-sdk/go-sciter@v0.5.0/sciter.go:1468 +0x441 github.com/sciter-sdk/go-sciter._cgoexpwrap_29ac64e236ed_goElementEventProc(0x2, 0x0, 0x8000, 0x194f5c0, 0x0) _cgo_gotypes.go:2000 +0x59 syscall.Syscall(0x7ffd34a744c0, 0x2, 0x11076e, 0x5, 0x0, 0x0, 0x0, 0x0) c:/go/src/runtime/syscall_windows.go:188 +0xbc github.com/lxn/win.ShowWindow(0x11076e, 0x5, 0xc35700) C:/Users/Administrator/go/pkg/mod/github.com/lxn/win@v0.0.0-20191128105842-2da648fda5b4/user32.go:3273 +0x76 github.com/sciter-sdk/go-sciter/window.(*Window).Show(0xc00010ae20) C:/Users/Administrator/go/pkg/mod/github.com/sciter-sdk/go-sciter@v0.5.0/window/window_windows.go:42 +0x61 main.main() h:/go/windows/main.go:66 +0x45d could not remove h:\go\windows__debug_bin: remove h:\go\windows__debug_bin: The process cannot access the file because it is being used by another process. Process exiting with code: 0`
golang code // func logout(w window.Window, root sciter.Element) { w.DefineFunction("test", func(args ...sciter.Value) sciter.Value { fmt.Println(args) fmt.Println("test") return sciter.NewValue(123) }) }
html code // $(#logout).on("click",function(){ var obj = {num:100, str:"Hello World"}; view.msgbox(#question,"logout?","logout",[ {id:#yes, text:"yes"}, {id:#no, text:"no"} ],function(root){ },function(root,id){ $(.menu-child).style["display"]="none"; if(id=="yes"){ $(#allnum).text(function(e){ view.test("test") }) } }); });
github.com/sciter-sdk/go-sciter v0.5.0 sciter-sdk v4.4.3.28 window 10 v2004 gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)
Was fixed already. See #239.
https://github.com/sciter-sdk/go-sciter/blob/master/examples/demoes/04/demo4.go
This is a BUG of version 4.4.3.28