{"action":"closed","issue":{"url":"https://api.github.com/repos/davkean/audio-switcher/issues/33","labels_url":"https://api.github.com/repos/davkean/audio-switcher/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/davkean/audio-switcher/issues/33/comments","events_url":"https://api.github.com/repos/davkean/audio-switcher/issues/33/events","html_url":"https://github.com/davkean/audio-switcher/issues/33","id":77162117,"number":33,"title":"Suepend and resume caused this","user":{"login":"SimonCropp","id":122666,"avatar_url":"https://avatars.githubusercontent.com/u/122666?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonCropp","html_url":"https://github.com/SimonCropp","followers_url":"https://api.github.com/users/SimonCropp/followers","following_url":"https://api.github.com/users/SimonCropp/following{/other_user}","gists_url":"https://api.github.com/users/SimonCropp/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonCropp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonCropp/subscriptions","organizations_url":"https://api.github.com/users/SimonCropp/orgs","repos_url":"https://api.github.com/users/SimonCropp/repos","events_url":"https://api.github.com/users/SimonCropp/events{/privacy}","received_events_url":"https://api.github.com/users/SimonCropp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-16T23:50:57Z","updated_at":"2015-07-30T00:55:12Z","closed_at":"2015-07-30T00:55:12Z","body":"Might be because i plugged in an external mic and speaker before resuming\r\n\r\n```\r\nSee the end of this message for details on invoking \r\njust-in-time (JIT) debugging instead of this dialog box.\r\n\r\n************** Exception Text **************\r\nSystem.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)\r\n   at AudioSwitcher.Audio.AudioDeviceManager.GetDefaultAudioDevice(AudioDeviceKind kind, AudioDeviceRole role) in c:\\Code\\audio-switcher\\src\\AudioSwitcher\\Audio\\AudioDeviceManager.cs:line 124\r\n   at AudioSwitcher.Audio.AudioDeviceManager.IsDefaultAudioDevice(AudioDevice device, AudioDeviceRole role) in c:\\Code\\audio-switcher\\src\\AudioSwitcher\\Audio\\AudioDeviceManager.cs:line 107\r\n   at AudioSwitcher.UI.ViewModels.AudioDeviceViewModel.CalculateDeviceDefaultState(AudioDeviceManager deviceManager) in c:\\Code\\audio-switcher\\src\\AudioSwitcher\\UI\\ViewModels\\AudioDeviceViewModel.cs:line 254\r\n   at AudioSwitcher.UI.ViewModels.AudioDeviceViewModel.UpdateStatus(AudioDeviceManager deviceManager) in c:\\Code\\audio-switcher\\src\\AudioSwitcher\\UI\\ViewModels\\AudioDeviceViewModel.cs:line 79\r\n   at AudioSwitcher.UI.ViewModels.AudioDeviceViewModelManager.OnDeviceStateChanged(Object sender, AudioDeviceStateEventArgs e) in c:\\Code\\audio-switcher\\src\\AudioSwitcher\\UI\\ViewModels\\AudioDeviceViewModelManager.cs:line 99\r\n   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)\r\n   at AudioSwitcher.Audio.AudioDeviceManager.<>c__DisplayClass1.<AudioSwitcher.Audio.Interop.IMMNotificationClient.OnDeviceStateChanged>b__0() in c:\\Code\\audio-switcher\\src\\AudioSwitcher\\Audio\\AudioDeviceManager.cs:line 154\r\n   at AudioSwitcher.Audio.AudioDeviceManager.<>c__DisplayClass11.<InvokeOnSynchronizationContext>b__f(Object state) in c:\\Code\\audio-switcher\\src\\AudioSwitcher\\Audio\\AudioDeviceManager.cs:line 234\r\n\r\n\r\n************** Loaded Assemblies **************\r\nmscorlib\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.6.57.0 built by: NETFXREL2\r\n    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll\r\n----------------------------------------\r\nAudioSwitcher\r\n    Assembly Version: 0.1.0.0\r\n    Win32 Version: 0.1.0.0\r\n    CodeBase: file:///C:/Code/audio-switcher/src/AudioSwitcher/bin/Debug/AudioSwitcher.exe\r\n----------------------------------------\r\nSystem.ComponentModel.Composition\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.6.57.0\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll\r\n----------------------------------------\r\nSystem.Core\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.6.57.0 built by: NETFXREL2\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll\r\n----------------------------------------\r\nSystem\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.6.57.0 built by: NETFXREL2\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll\r\n----------------------------------------\r\nSystem.Windows.Forms\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.6.57.0 built by: NETFXREL2\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll\r\n----------------------------------------\r\nSystem.Drawing\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.6.57.0 built by: NETFXREL2\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll\r\n----------------------------------------\r\nSystem.Configuration\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.6.57.0 built by: NETFXREL2\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll\r\n----------------------------------------\r\nSystem.Xml\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.6.57.0 built by: NETFXREL2\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll\r\n----------------------------------------\r\nMetadataViewProxies_c6889f80-f9ce-42c8-9425-72cf6f9abeef\r\n    Assembly Version: 0.0.0.0\r\n    Win32 Version: 4.6.57.0\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll\r\n----------------------------------------\r\nAccessibility\r\n    Assembly Version: 4.0.0.0\r\n    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL\r\n    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll\r\n----------------------------------------\r\n\r\n************** JIT Debugging **************\r\nTo enable just-in-time (JIT) debugging, the .config file for this\r\napplication or computer (machine.config) must have the\r\njitDebugging value set in the system.windows.forms section.\r\nThe application must also be compiled with debugging\r\nenabled.\r\n\r\nFor example:\r\n\r\n<configuration>\r\n    <system.windows.forms jitDebugging=\"true\" />\r\n</configuration>\r\n\r\nWhen JIT debugging is enabled, any unhandled exception\r\nwill be sent to the JIT debugger registered on the computer\r\nrather than be handled by this dialog box.\r\n```\r\n\r\n\r\n"}}