vyrru5 / audioswitch

Automatically exported from code.google.com/p/audioswitch
0 stars 0 forks source link

RC2 Crash when hiding devices #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Hide 2 devices from playback list
2.  Crashes immediately ,or left click systray icon.

What version of the product are you using? On what operating system?
Win7 x64

Please provide any additional information below.

************** Exception Text **************
System.ArgumentOutOfRangeException: InvalidArgument=Value of '2' is not valid 
for 'index'.
Parameter name: index
   at System.Windows.Forms.ImageList.ImageCollection.get_Item(Int32 index)
   at AudioSwitch.Forms.FormSwitcher.SetDeviceIcon(Int32 index, Boolean isSelected)
   at AudioSwitch.Forms.FormSwitcher.RefreshDevices(EDataFlow renderType)
   at AudioSwitch.Forms.FormSwitcher.notifyIcon1_MouseDown(Object sender, MouseEventArgs e)
   at System.Windows.Forms.NotifyIcon.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.NotifyIcon.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.NotifyIcon.WndProc(Message& msg)
   at System.Windows.Forms.NotifyIcon.NotifyIconNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
AudioSwitch
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0
    CodeBase: file:///C:/Program%20Files%20(x86)/AudioSwitch/AudioSwitch.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------

************** JIT Debugging **************

Original issue reported on code.google.com by lcst...@gmail.com on 4 Dec 2013 at 3:45

GoogleCodeExporter commented 9 years ago
Here is the diff for the fix (attached).

Original comment by lcst...@gmail.com on 4 Dec 2013 at 8:01

Attachments:

GoogleCodeExporter commented 9 years ago
adding published setup in case others want to try.

I do not make any warranties or guaranties, I have not added anything else 
other than the fix for this particular issue in this file.  It is latest RC2 + 
fixes as of this post date.

Again, I am not responsible if this damages your computer.
You can always reverse the binary using reflector if you don't want to take any 
risks.

Here is the Md5Sum for this binary:
87e93a2f38bd6cc198e12d15665c6c5e  AudioSwitch.exe

Original comment by lcst...@gmail.com on 4 Dec 2013 at 8:18

Attachments:

GoogleCodeExporter commented 9 years ago
back up the original audioswitch.exe file, and replace with the one attached 
above to install.  If audioswitch is not installed, you must install it first 
with the RC2 setup.exe

Original comment by lcst...@gmail.com on 4 Dec 2013 at 8:22

GoogleCodeExporter commented 9 years ago
Im still getting crashes :(

Original comment by thejono...@gmail.com on 12 Jun 2014 at 9:02

GoogleCodeExporter commented 9 years ago
I got the same issue but just when I hide the first device on the list.
For me just click continue then re-call the setting page and remove the setting 
of first device item.
After that restart the app will be normal.

Original comment by edwards...@gmail.com on 30 Nov 2014 at 3:19

Attachments: