mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Error on reloading a window after a second window is closed #763
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dlitty on GitHub (Feb 17, 2022).
electronize startwill reproduceUsing the latest Electron.NET API & CLI: if an application has two windows open, then one of them is closed, and you call Reload() on the first one, an error occurs:
Steps to Reproduce:
Task.Run(async () => await Electron.WindowManager.CreateWindowAsync());, use:Alternatively, comment out the Close and Reload lines, and manually close one window and hit Cmd-R on the other.
@danatcofo commented on GitHub (Feb 18, 2022):
Omg reproduction of a bug I couldn't figure out how to reproduce. And so simple! Thank you, you are my hero!
I'm going to fix this on Monday now that I have repo steps.
This bug has been on my annoyatron radar for months but never had the time to dive in depth to isolate and reproduce. Just happened randomly it seemed like.
@dlitty commented on GitHub (Feb 19, 2022):
Glad I could help! Never good to have the annoyatron active!
@xsoutline commented on GitHub (Aug 1, 2023):
I have the same problem
I opened window A when the application started with a custom url scheme, and then used the custom url scheme to open the program, triggering the second instance event. I called CreateWindowAsync to create a new window B, then closed window B. When I clicked on the link on in window A,the link has js listening on code, I reported this error.
After window B is closed, if I open a new window, this situation will disappear
@FlorianRappl commented on GitHub (Nov 2, 2025):
Outdated - use
ElectronNET.CoreandElectronNET.Core.AspNet.See Wiki / What's New.