SteveSandersonMS / WebWindow

.NET Core library to open native OS windows containing web UI on Windows, Mac, and Linux. Experimental.
Apache License 2.0
1.98k stars 215 forks source link

Running error on windows #23

Closed quan0zhou closed 4 years ago

quan0zhou commented 4 years ago

Console program running error static void Main(string[] args) { var window = new WebWindow("My first WebWindow app"); window.NavigateToString("test"); window.WaitForExit(); } System.AccessViolationException HResult=0x80004003 Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Source=<无法计算异常源> StackTrace: <无法计算异常堆栈跟踪>

tbonham commented 4 years ago

I'm also receiving the same error and I haven't figured out who to fix it.

SteveSandersonMS commented 4 years ago

Do you have Edge Beta installed?

quan0zhou commented 4 years ago

After Edge Beta installation, the problem is solved, thank you

thomaslevesque commented 4 years ago

Even though the fix is simple, I think this issue should be addressed. A specific exception should be thrown instead of AccessViolationException, e.g. InvalidOperationException with message "Could not find a supported browser on this system".

SteveSandersonMS commented 4 years ago

@thomaslevesque I agree. If you’re able to submit a PR for this I’d be happy to merge it.

thomaslevesque commented 4 years ago

@SteveSandersonMS I'd love to, but after looking into it, I'm afraid the problem is in the native C++ code, and my C++ skills are limited...

kartik786-git commented 3 years ago

After Edge Beta installation this issue not fixed. Please help me

System.AccessViolationException HResult=0x80004003 Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Source= StackTrace: