xenolightning / AudioSwitcher

.NET Library which facilitates interacting with Audio Devices on Windows
Microsoft Public License
248 stars 53 forks source link

Properties Inaccessible when device is removed. #4

Closed xenolightning closed 9 years ago

xenolightning commented 9 years ago

Details:

Audio Switcher Version: 1.6.3.1 Operating System: Microsoft Windows NT 6.2.9200.0 64-bit Administrator Privileges: False

User Comments:

unplugged a device i think

Stacktrace:

System.NullReferenceException: Object reference not set to an instance of an object.
   at AudioSwitcher.AudioApi.CoreAudio.CoreAudioDevice.get_FullName()
   at FortyOne.AudioSwitcher.AudioSwitcher.RefreshNotifyIconItems()
   at FortyOne.AudioSwitcher.AudioSwitcher.RefreshPlaybackDevices()
xenolightning commented 9 years ago

Fixed with the new CachedPropertyStore.

xenolightning commented 9 years ago

7 should also address this one.