dotMorten / WinUIEx

WinUI Extensions
https://dotmorten.github.io/WinUIEx
MIT License
602 stars 38 forks source link

TrayIcon Dispose exception after Toggle #30

Closed HavenDV closed 2 years ago

HavenDV commented 2 years ago
image

Repro:

  1. Click image
  2. Click image
dotMorten commented 2 years ago

I haven't been able to reproduce this. Could you share the full stack trace as well?

HavenDV commented 2 years ago

This does not always appear. Wait 0.5-1 second before step 2.

image image

Sometimes this happens if you then click on the tray icon.

image
Tide commented 2 years ago

I can confirm this as well. To reproduce it you have to do a fresh start of the solution. If you have run debug on the solution and closed the app at least one time this error will not happen.

Start the solution. Start debug. Click "Toggle Tray Icon". (Icon shows in tray) Click "Toggle Tray Icon". (Error shown above occurs)

dotMorten commented 2 years ago

I've decided to deprecate and ultimately remove the trayicon APIs as they are still lacking lots of features to be truly functional, and have various lifecycle issues. I'm just not happy with where they are at, but might bring the back in the future.