webview_csharp icon indicating copy to clipboard operation
webview_csharp copied to clipboard

Application crash. Edge Chromium

Open fpetrov opened this issue 3 years ago • 5 comments

Hello! I am using Windows 10 (19041.685) with new Edge Chromium (87.0.664.57). I have created a test project with SharpWebview but the application crashes(screenshot below). Loopback is also enabled on my machine. Do you have any idea how to fix this? Error

fpetrov avatar Dec 10 '20 10:12 fpetrov

Hey! Please add [STAThread] above your Main method. Like in the example: https://github.com/webview/webview_csharp#a-basic-example

geaz avatar Dec 10 '20 10:12 geaz

Thanks, I forgot to add this attribute, but the application still crashes with the same error. I tried to run this program on my other computer, and it works there, but I still don't understand the reason why it crashes on this computer. Error .

fpetrov avatar Dec 10 '20 11:12 fpetrov

Does your other PC runs another version of Edge? I think we have to update the Webkit2 nuget for the latest edge version.

geaz avatar Dec 10 '20 12:12 geaz

No, both computers have the same version of Edge.

fpetrov avatar Dec 10 '20 14:12 fpetrov

I just ran the same program in Go and realized that it was using the "new" Edge, while on my main PC the program was using the "old" Edge (I figured this out from the link drag difference). I assume that because of this, the program does not run on other PCs.

fpetrov avatar Dec 28 '20 21:12 fpetrov