Belphemur / SoundSwitch

C# application to switch default playing device. Download: https://soundswitch.aaflalo.me/
https://soundswitch.aaflalo.me/
GNU General Public License v2.0
2.45k stars 176 forks source link

Crash on boot after motherboard change #251

Closed barnabycollins closed 6 years ago

barnabycollins commented 6 years ago

I recently downsized my PC, which involved changing from an ASUS Prime X370-Pro to an ITX ASUS board (B350-I Gaming). Now, SoundSwitch crashes every time I boot. I'm running Windows 10 Pro x64 1709 with all the latest quality updates as of April 1st (KB4088776). I'm using SoundSwitch to change between a set of 3.5mm speakers attached to my motherboard headers and my USB headset. AppData folder and crash logs attached. I should mention that, after launching the application manually through the Start Menu, it works perfectly. SoundSwitch.zip SoundSwitch-crashlog-1_4_2018.zip SoundSwitch-crashlog-30_3_2018.zip

FireEmerald commented 6 years ago

I would suggest to uninstall SoundSwitch and make sure %AppData%\SoundSwitch is also deleted. Then reinstall SoundSwitch and tell us if the problem persists. Seems like something went wrong while unregister hotkeys.

https://github.com/Belphemur/SoundSwitch/blob/ffdc7895f45010f455343bb05e9cc7765fc84352/SoundSwitch/Framework/WindowsAPIAdapter.cs#L178-L193 L191

barnabycollins commented 6 years ago

Alright, I'll have a look. Thanks!

barnabycollins commented 6 years ago

Just rebooted having reinstalled, to be greeted with a crash again. Here's the log: SoundSwitch-crashlog-15_4_2018.zip

FireEmerald commented 6 years ago

Please update to the latest version - if the problem persists, you can use the following workaround, because you said:

I should mention that, after launching the application manually through the Start Menu, it works perfectly.

  1. Disable the Autostart of SoundSwitch everywhere.
  2. Create a new text file somewhere, called startSoundSwitch.bat. 2018-05-20 00_06_05-autostart
  3. The content of the file should be: start /d "C:\Program Files\SoundSwitch" SoundSwitch.exe
  4. (optional) The path must be changed if you installed SoundSwitch somewhere else.
  5. Close SoundSwitch, double click onto the file, SoundSwitch must start.
  6. Press [WIN] + [R], enter shell:startup and press OK.
  7. A directory will be opened, create a shortcut of your startSoundSwitch.bat file and move it to this directory.
  8. Edit the properties of your shortcut and set Run: Minimized.
  9. You're done. When your computer starts, SoundSwitch will start.

If something doesn't work, try the "full version" here.