Menu

#3 Problems when you change driver/network cards

v1.0_(example)
open
nobody
None
2
2014-08-17
2013-10-25
Hexaae
No

When you change driver/network card and you restart Coffee it will fail with a .NET error, because the card/driver has changed and won't match the one loaded on startup.
When you press Continue it will display the error in loop making it hard to quickly change the card with the new one from the pull-down list...

Discussion

  • Steven Cole

    Steven Cole - 2013-10-25

    I believe I fixed this just now in 1.0.4 could you please test and report back, I don't have a removable network card to test it.....

     
  • Hexaae

    Hexaae - 2013-10-26

    Still .NET exception requester here. You can test by yourself editing the the user.config file (Network adapter value) and restarting Coffee.

    ** Testo dell'eccezione **
    System.ArgumentOutOfRangeException: Index non compreso nell'intervallo. Richiesto valore non negativo e minore della dimensione della raccolta.
    Nome parametro: index
    in SleepFix.Form1.timer1_Tick(Object sender, EventArgs e)
    in System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
    in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    ** Assembly caricati **
    mscorlib
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.18052 built by: FX45RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll


    Coffee
    Versione assembly: 1.0.1.0
    Versione Win32: 1.0.1.0
    Base di codice: file:///C:/Program%20Files/Steven%20Cole/Coffee/Coffee.exe


    System.Windows.Forms
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.18047 built by: FX45RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll


    System.Drawing
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.18021 built by: FX45RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll


    System
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.18044 built by: FX45RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll


    System.Configuration
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.18060 built by: FX45RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll


    System.Xml
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.18060 built by: FX45RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll


    mscorlib.resources
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.17929 built by: FX45RTMREL
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_it_b77a5c561934e089/mscorlib.resources.dll


    System.Windows.Forms.resources
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.17929 built by: FX45RTMREL
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll


     

    Last edit: Hexaae 2013-10-26
  • Steven Cole

    Steven Cole - 2013-10-26

    should be fixed now.

    if you change your adapter it will say "Error: { adaptor name here} not found." then it will continue to work buy selecting the top most adapter in the list. when you close the app it will remember the new adapter for next time.

     
  • Steven Cole

    Steven Cole - 2013-10-26

    oh i didn't increment the version number so theirs new 1.0.4

     
  • Hexaae

    Hexaae - 2013-10-26

    Ok, it works. It does as you said now. No more Error loop.
    Won't crash if can't find any adapter, right?

    Yep, version string in the exe is still 1.0.1 for Windows... ;)

     

    Last edit: Hexaae 2013-10-26
  • Steven Cole

    Steven Cole - 2013-10-26

    it checks for no adapter before trying to load the adapter from the settings file. they would get a message "No active network connections detected, the program will now close"

    you can test just unplug/disable all networks

     

    Last edit: Steven Cole 2013-10-26
  • Hexaae

    Hexaae - 2013-10-26

    Great! :)
    Only thing left is EXE updated version number.

     

    Last edit: Hexaae 2013-10-26

Log in to post a comment.

MongoDB Logo MongoDB