Hi all,
I'm newbie with Bluetooth and I'm going to discover info all over the web.
I've found 32feet (version 3.4) and in the tutorial (youtube) it seems to be what I need.
I've written the code like the video... but it crash!!!
this is all my code for testing:
List<string> deviceNames;
InTheHand.Net.Sockets.BluetoothDeviceInfo[] devices;
could not load type 'System.Runtime.ConstrainedExecution.CriticalFinalizerObject' dall'assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC'.
in which way can I solve this error?
TIA Dario
I'm newbie with Bluetooth and I'm going to discover info all over the web.
I've found 32feet (version 3.4) and in the tutorial (youtube) it seems to be what I need.
I've written the code like the video... but it crash!!!
this is all my code for testing:
List<string> deviceNames;
InTheHand.Net.Sockets.BluetoothDeviceInfo[] devices;
private void btnSearch_Click(object sender, EventArgs e)
{
deviceNames = new List<string>();
//*** start Scandevices
InTheHand.Net.Sockets.BluetoothClient btClient = new inTheHand.Net.Sockets.BluetoothClient(); ---> here system CRASH!
devices = btClient.DiscoverDevicesInRange();
//*** scan complete
foreach (InTheHand.Net.Sockets.BluetoothDeviceInfo d in devices)
{
deviceNames.Add(d.DeviceName);
}
lstBox.DataSource = deviceNames;
}
crash error is: could not load type 'System.Runtime.ConstrainedExecution.CriticalFinalizerObject' dall'assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC'.
in which way can I solve this error?
TIA Dario