Closed
Description
> go version
go version go1.8.1 windows/amd64
Win 10 64bit.
The program below crashes the program i.e. the window shows up briefly, then disappears. The part after mainTmpl.Run()
doesn't seem to run.
It doesn't crash if I change URL to https://blog.kowalczyk.info/software/
IE (the old one) seems to be displaying the page just fine.
I ran it under the debugger (from Visual Studio Code) but it didn't give me anything so don't know how to debug it further.
package main
import (
"fmt"
"github.com/lxn/walk"
"github.com/lxn/walk/declarative"
)
func main() {
var main *walk.MainWindow
var wv *walk.WebView
fmt.Printf("Starting\n")
mainTmpl := declarative.MainWindow{
AssignTo: &main,
Title: "Test",
MinSize: declarative.Size{600, 400},
Layout: declarative.VBox{},
Children: []declarative.Widget{
declarative.WebView{
AssignTo: &wv,
Name: "wv",
URL: "https://blog.kowalczyk.info",
},
},
}
n, err := mainTmpl.Run()
fmt.Printf("Run() returned %d, %s\n", n, err)
}
Metadata
Metadata
Assignees
Labels
No labels