mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
BeforeQuit bug #504
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 @BurtsevC on GitHub (May 28, 2020).
Add a listener to Electron.App.BeforeQuit and show MessageBoxResult in it. Try to open the app again while MessageBoxResult is still opening. The problem is more than that, I saw it with Debian when I show MessageBoxResult, close it and tried to open the app for about 5 - 10 seconds after closing. I got the same problem "Object has been destroyed" although the app is closed and even MessageBoxResult is closed.

The same bug can be repeated with WindowAllClosed. Try to open the app while ShowMessageBoxAsync is active.
@BurtsevC commented on GitHub (Jun 1, 2020):
It's my fault, I have used RequestSingleInstanceLockAsync but forgot to ReleaseSingleInstanceLock in BeforeQuit.