filippobottega/ShareFix

System.InvalidCastException

graphixillusion opened this issue · 3 comments

Hi there. First of all, thank you for all the effort about fixing this annoying bug. I can confirm that it still occurrs under Windows 10 version 1809. So looking for a solution, i found this page but i got an issue during the run so let me explain it. When i launch the tool, i choose the option to fix one interface: on my system, the interface i want to fix is the number 0. I enter 0 then press enter. At this point, nothing happens: just the blinking cursor to a new line. If i hit enter again, this error will show up:

System.InvalidCastException: Cast non valido dalla stringa "" al tipo 'Integer'. ---> System.FormatException: Formato della stringa di input non corretto.
   in Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
   in Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)
   --- Fine della traccia dello stack dell'eccezione interna ---
   in Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)
   in ShareFix.MainModule.FixRegistry(Boolean silent) in C:\Users\Filippo\Documents\GitHub\ShareFix\ShareFix\ShareFix\MainModule.vb:riga 107
   in ShareFix.MainModule.Main() in C:\Users\Filippo\Documents\GitHub\ShareFix\ShareFix\ShareFix\MainModule.vb:riga 26
Press a key to exit

Any clue?

Hi Gabe & Glen,
thank you for your support.
I have published a new release v1.0.4 with your correction.

Best regards,
Filippo.