MBS WinFrameworks Plugin - Problem with BLE Pairing on Win 10

Hello,

  1. We have some DemoApp. The first PairAsync method call often doesn’t force Windows to display the pair request. From the second (sometimes third or more) call of PairAsync method works correctly.

  2. PairAsyncCompleted event every time return status 19(An unknown failure occurred).

The same code works well on Windows 11.
Pairing sample from Microsoft works well on Windows 10.

Please, could someone help us resolve this situation?
Thanks!

Any log message from windows showing in DebugView or Microsoft event log?

Log blocks when Pair clicked
Win 10:

00000001 0.00000000 [26140] MBS Debug: FromBluetoothAddressAsync
00000002 0.00001830 [26140] MBS Debug: delegate 0000000002790050
00000003 0.00003470 [26140] MBS Debug: XojoObject::XojoObject
00000004 0.01997590 [26140] MBS Debug: Needs dispatch to main thread.
00000005 0.04333320 [26140] MBS Debug: Dispatching events 1
00000006 0.04335350 [26140] MBS Debug: FromBluetoothAddressAsyncCompleted
00000007 0.04336580 [26140] MBS Debug: asyncStatus 1
00000008 0.04340990 [26140] MBS Debug: ConnectionStatusChanged 198251040
00000009 0.04342880 [26140] MBS Debug: GattServicesChanged 198250080
00000010 0.04344680 [26140] MBS Debug: NameChanged 198250240
00000011 0.04347740 [26140] MBS Debug: Destructor
00000012 0.04350000 [26140] MBS Debug: Destructor
00000013 0.04353810 [26140] MBS Debug: XojoObject::XojoObject
00000014 0.04372020 [26140] MBS Debug: Destructor
00000015 0.04374500 [26140] MBS Debug: Destructor
00000016 0.04699870 [26140] MBS Debug: XojoObject::~XojoObject
00000017 0.21331260 [29892] Suspending

Win 11 (pairing request intentionally rejected):
00000001 0.00000000 [3344] MBS Debug: FromBluetoothAddressAsync
00000002 0.00006660 [3344] MBS Debug: delegate 000000000280C570
00000003 0.00012050 [3344] MBS Debug: XojoObject::XojoObject
00000004 0.04045510 [3344] MBS Debug: Needs dispatch to main thread.
00000005 0.06976040 [3344] MBS Debug: Dispatching events 1
00000006 0.06984760 [3344] MBS Debug: FromBluetoothAddressAsyncCompleted
00000007 0.06992390 [3344] MBS Debug: asyncStatus 1
00000008 0.07009970 [3344] MBS Debug: ConnectionStatusChanged 41726288
00000009 0.07017100 [3344] MBS Debug: GattServicesChanged 41730448
00000010 0.07026850 [3344] MBS Debug: NameChanged 41731984
00000011 0.07040600 [3344] MBS Debug: Destructor
00000012 0.07042340 [3344] MBS Debug: Destructor
00000013 0.07055030 [3344] MBS Debug: XojoObject::XojoObject
00000014 0.07090670 [3344] MBS Debug: Destructor
00000015 0.07093330 [3344] MBS Debug: Destructor
00000016 0.07653310 [3344] MBS Debug: XojoObject::~XojoObject
00000017 10.31177616 [3344] MBS Debug: Needs dispatch to main thread.
00000018 10.31417084 [3344] MBS Debug: Dispatching events 1
00000019 10.31429672 [3344] MBS Debug: PairAsyncCompleted
00000020 10.31436348 [3344] MBS Debug: Event PairAsyncCompleted 00000001404D43E0
00000021 10.31445503 [3344] MBS Debug: asyncStatus 1
00000022 10.31606770 [3344] MBS Debug: PairingStatus 19
00000023 10.31614113 [3344] MBS Debug: ProtectionLevelUsed 1
00000024 10.31663609 [3344] MBS Debug: XojoObject::~XojoObject
00000025 10.31667995 [3344] MBS Debug: Destructor
00000026 10.40231705 [9860] Suspending

Win 10 (second click was successful)
00000001 0.00000000 [1404] MBS Debug: FromBluetoothAddressAsync
00000002 0.00002420 [1404] MBS Debug: delegate 000000000728F3B0
00000003 0.00004500 [1404] MBS Debug: XojoObject::XojoObject
00000004 0.02602620 [1404] MBS Debug: Needs dispatch to main thread.
00000005 0.03773020 [1404] MBS Debug: Dispatching events 1
00000006 0.03776410 [1404] MBS Debug: FromBluetoothAddressAsyncCompleted
00000007 0.03779700 [1404] MBS Debug: asyncStatus 1
00000008 0.03783910 [1404] MBS Debug: ConnectionStatusChanged 119382080
00000009 0.03785980 [1404] MBS Debug: GattServicesChanged 119379680
00000010 0.03788000 [1404] MBS Debug: NameChanged 119383680
00000011 0.03793300 [1404] MBS Debug: Destructor
00000012 0.03795690 [1404] MBS Debug: Destructor
00000013 0.03799630 [1404] MBS Debug: XojoObject::XojoObject
00000014 0.03820710 [1404] MBS Debug: Destructor
00000015 0.03823580 [1404] MBS Debug: Destructor
00000016 0.04110890 [1404] MBS Debug: XojoObject::~XojoObject
00000017 0.19904269 [29892] Suspending
00000018 7.69932175 [1404] MBS Debug: FromBluetoothAddressAsync
00000019 7.69934320 [1404] MBS Debug: delegate 000000000728D610
00000020 7.69936562 [1404] MBS Debug: XojoObject::XojoObject
00000021 7.73434162 [1404] MBS Debug: Needs dispatch to main thread.
00000022 7.75816584 [1404] MBS Debug: Dispatching events 1
00000023 7.75818300 [1404] MBS Debug: FromBluetoothAddressAsyncCompleted
00000024 7.75819921 [1404] MBS Debug: asyncStatus 1
00000025 7.75823927 [1404] MBS Debug: ConnectionStatusChanged 119382560
00000026 7.75825930 [1404] MBS Debug: GattServicesChanged 119378880
00000027 7.75827742 [1404] MBS Debug: NameChanged 119383360
00000028 7.75830650 [1404] MBS Debug: Destructor
00000029 7.75832891 [1404] MBS Debug: Destructor
00000030 7.75836658 [1404] MBS Debug: XojoObject::XojoObject
00000031 7.75853539 [1404] MBS Debug: Destructor
00000032 7.75856018 [1404] MBS Debug: Destructor
00000033 7.76134539 [1404] MBS Debug: XojoObject::~XojoObject
00000034 7.81536102 [1404] MBS Debug: Needs dispatch to main thread.
00000035 7.81998968 [1404] MBS Debug: Dispatching events 1
00000036 7.82002497 [1404] MBS Debug: PairAsyncCompleted
00000037 7.82005358 [1404] MBS Debug: Event PairAsyncCompleted 00000001404D4460
00000038 7.82010889 [1404] MBS Debug: asyncStatus 1
00000039 7.82115459 [1404] MBS Debug: XojoObject::~XojoObject
00000040 7.82118082 [1404] MBS Debug: Destructor
00000041 7.90941763 [29892] Suspending
00000042 8.59474277 [1404] MBS Debug: Needs dispatch to main thread.
00000043 8.60488510 [1404] MBS Debug: Dispatching events 1
00000044 8.60490608 [1404] MBS Debug: PairAsyncCompleted
00000045 8.60496426 [1404] MBS Debug: Event PairAsyncCompleted 00000001404D4460
00000046 8.60498524 [1404] MBS Debug: asyncStatus 1
00000047 8.60583401 [1404] MBS Debug: XojoObject::~XojoObject
00000048 8.60585499 [1404] MBS Debug: Destructor

Maybe have code to try it again if you get error 19?

Sorry, but I have no better answer. Maybe someone else knows about this?