JavaScript error when accessing app window object #505

Closed
opened 2026-01-29 16:41:27 +00:00 by claunia · 1 comment
Owner

Originally created by @Velorien on GitHub (May 29, 2020).

Originally assigned to: @GregorBiswanger on GitHub.

  • Version:
    API and CLI 8.31.2 on .NET Core 3.1

  • Target:
    Windows and Mac

Steps to Reproduce:

As per my client's report, they have left the application runnning for a longer while and then made an action that caused the following code to run:

var window = Electron.WindowManager.BrowserWindows.FirstOrDefault();
window.SetAlwaysOnTop(true);
window.Restore();
window.SetAlwaysOnTop(false);

The following message appeared:
image

I've also seen these errors occur right after the application started, but I couldn't quite pin down their source. Is this somehow related to #381 ? I've never seen this happen when I electronize start the application. Please let me know if there's anything I can do to help resolve this issue.

Originally created by @Velorien on GitHub (May 29, 2020). Originally assigned to: @GregorBiswanger on GitHub. * **Version**: API and CLI 8.31.2 on .NET Core 3.1 * **Target**: Windows and Mac Steps to Reproduce: As per my client's report, they have left the application runnning for a longer while and then made an action that caused the following code to run: ``` csharp var window = Electron.WindowManager.BrowserWindows.FirstOrDefault(); window.SetAlwaysOnTop(true); window.Restore(); window.SetAlwaysOnTop(false); ``` The following message appeared: ![image](https://user-images.githubusercontent.com/3647931/83240625-f45c9d80-a199-11ea-80d4-93df6f5e7547.png) I've also seen these errors occur right after the application started, but I couldn't quite pin down their source. Is this somehow related to #381 ? I've never seen this happen when I `electronize start` the application. Please let me know if there's anything I can do to help resolve this issue.
claunia added the bug label 2026-01-29 16:41:27 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (Mar 28, 2023):

🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉

With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!

@GregorBiswanger commented on GitHub (Mar 28, 2023): 🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉 With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#505