Hi @ioa747,
Thanks again for the quick fix on #129!
While testing, I spotted one minor crash risk in _NetWebView2_BrowserSetupWrapper (around lines 808-820):
If _NetWebView2_CreateManager fails, it returns False. The code skips the If Not @error block, but then tries to log $oOuterWeb.BrowserWindowHandle at the end, which will crash the script.
A simple fix would be to guard it:
$MSG = " InnerWebViewWindow=" & $hInnerWebViewWindow & " BrowserWindowHandle=" & (IsObj($oOuterWeb) ? $oOuterWeb.BrowserWindowHandle : "[Not Created]")
Thanks again!
Hi @ioa747,
Thanks again for the quick fix on #129!
While testing, I spotted one minor crash risk in
_NetWebView2_BrowserSetupWrapper(around lines 808-820):If
_NetWebView2_CreateManagerfails, it returnsFalse. The code skips theIf Not @errorblock, but then tries to log$oOuterWeb.BrowserWindowHandleat the end, which will crash the script.A simple fix would be to guard it:
Thanks again!