Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: Error in BluetoothDevice.Refresh using a new Windows 10 install

$
0
0
I am getting an 'Input Parameter is incorrect' when DotSpatial is looking for a Bluetooth device that is providing GPS data - it only seems to happen on a new Windows 10 install, not on an upgrade from Windows 7 (those are the two cases we have).
// Make an API call to retrieve information for the device
NativeMethods2.BluetoothDeviceInfo info = new NativeMethods2.BluetoothDeviceInfo(_address.ToInt64());

int errorCode = NativeMethods2.BluetoothGetDeviceInfo(BluetoothRadio.Current.Handle, ref info);

According to Microsoft documentation, the error is indicating that the second parameter that is being passed in is null.

Hoping someone can provide some insight here =)

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>