[hpsdr] Updated KISS Konsole for Cross-platform Execution

Takafumi INOUE ji3gab at yahoo.com
Wed Sep 10 08:42:04 PDT 2014


Chris,

I'm neither a C# expert nor a Mac user, but seeing the messages
attached to your previous mail I think the program failed to get the
subnetmask.

The exception occurred in the IPAddress.TryParse() internally called by
the IPAddress.Parse() in the GetNetworkInterfaces() method in
Form1.cs.

So I guess the call 'IPInfoTools.GetIPv4Mask (adapter.Name, addr)'
returned null.

Takafumi
JI3GAB

---- code snippet ----
// IPv4Mask does not yet exist in Mono
							String subnetMask = IPInfoTools.GetIPv4Mask (adapter.Name, addr);
							mask = IPAddress.Parse (subnetMask);
----------------------



> … 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 
>   at System.Net.IPAddress.Parse (System.String ipString) [0x00000] in <filename unknown>:0 
>   at KISS_Konsole.Form1.GetNetworkInterfaces () [0x00000] in <filename unknown>:0 
>   at (wrapper remoting-invoke-with-check) KISS_Konsole.Form1:GetNetworkInterfaces ()
>   at KISS_Konsole.EthernetDevice.Start () [0x00000] in <filename unknown>:0 
>   at KISS_Konsole.Form1.OnOffButton_Click (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0 
>   at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0 
>   at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0 
>   at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000] in <filename unknown>:0 
>   at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000] in <filename unknown>:0 
>   at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
>   at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
>   at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
>   at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
>   at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
>   at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
>   at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0 
> 
> Back to the drawing board … again …
> 
> Chris G4NUX


 1410363724.0


More information about the Hpsdr mailing list