[hpsdr] Updated KISS Konsole for Cross-platform Execution

Chris Smith chris at vspl.co.uk
Wed Sep 10 04:14:31 PDT 2014


I've only just realised that the form that mono displays for KK under OS X has the On/Off button displayed as "Off" before I've had a chance to press the "On" button.

The IPAddress.TryParse() method is only used on one line of code: line 122 of EthernetDevice.cs i.e.

                if (IPAddress.TryParse(MainForm.EthernetHostIPAddress, out hostIP) && IPAddress.TryParse(MainForm.Metis_IP_address, out targetIP))

The code is displaying my host IP address correctly as 192.168.11.10 so presumably it's  MainForm.Metis_IP_address that causes the exception as that parameter appears to be a System.String type. Nor being a C# aficionado I'm struggling with the code.

73, Chris G4NUX

On 9 Sep 2014, at 18:45, Chris Smith <chris at vspl.co.uk> wrote:

> … however there is a problem when the "Off" button is pressed as mono throws an exception relating to th IP address:
> 
> en0
> ===
>  Interface type .......................... : Ethernet
>  Physical Address ........................ : 001F5BF48ABD
>  Is receive only.......................... : False
>  Multicast................................ : True
>  Speed    ................................ : 1000000
>  Unicast Addr ............................ : 192.168.11.10
> System.ArgumentNullException: Argument cannot be null.
> Parameter name: ipString
>  at System.Net.IPAddress.TryParse (System.String ipString, System.Net.IPAddress& address) [0x00000] in <filename unknown>:0 


 1410347671.0


More information about the Hpsdr mailing list