-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullRef exception when window is closed #13
Comments
Ok, line 82 is the offending one:
where After a closer look, the toast is generated, as Windows 10 shows its own system notification with the toast message. But after a couple of seconds (maybe when it was time to hide the toast) the exception is thrown. There's another similar scenario to generate a NullRef exception: I'm going to create a separate issue just to keep things more organized. |
Hi unfortunatelly I couldn't reproduce this error, so I only made null checks in several places in NotificationPopup class. If that doesn't fix your problem please provide some sample code to reproduce error. Fix is avalaible in 1.4.1 |
Confirm: 1.4.3 fixes this |
Hi there.
I think we met this issue also before the recent changes, but only now were able to grab some more details. We incurred in a NullReferenceException coming from the library code, and it seems we are able to repeat the process in our custom desktop app.
Our desktop app starts minimized in system tray, and then its main content window can be maximized/minimized from there. With this type of applications, you can have the "main window" (so to say) minimized, but the application still running.
For us,
NotificationTray
sits in that main content window, as it should be (it does not make sense to place it in the XAML for the System Tray control). When the main content window is minimized and for some reason a toast has to be shown, the exception comes up.Here's the stacktrace (from release build I guess, there are no line numbers):
We'll try to grab a development copy of the DLL, so to see line numbers as well.
The text was updated successfully, but these errors were encountered: