question

pardhuravipati-3061 avatar image
0 Votes"
pardhuravipati-3061 asked XiaopoYang-MSFT edited

BluetoothLEDevice is not disconnecting in windows 10 enterprise LTSC edition

var serviceCollection = _gattDeviceServiceResult?.Services?.ToList();
if (serviceCollection != null && serviceCollection.Any())
{
foreach (var serv in serviceCollection)
{
serv?.Dispose();
}
}

         _bluetoothLEDevice?.Dispose();
         _bluetoothLEDevice = null;
         GC.Collect();
windows-api
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Please have a look at the answer which indicates the issue may be caused by the active session of GattDeviceService, some resources, not been closed. And what is your environment and app type?

0 Votes 0 ·

0 Answers