Hello,
I'm using the Bluetooth Framework X v5.2.2 in a C# application with a Windows Presentation Foundation UI with VS 2008.
When I call Device.Pair() the calling thread hangs for some seconds, so I'm calling it in an extra thread to avoid that the UI hangs.
But even when I call it in this worker thread, the UI does not respond.
Does the Device.Pair() function always run in the main UI thread?
I tested the thread with a sleep command (10 seconds) instead of calling Pair(), the UI doesn't hang then.
What can I do to solve this problem?
I get the same behavior when I create a COM port to the paired device, but this method hangs only a short moment.
Thanks for the help
Roman