Author Topic: AxBluetoothFrameworkX.AxBFBluetoothDiscoveryX.Discovery() & Multithreading  (Read 1138 times)

Offline Robat2061

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Hello guys,

I try to use that Discovery-funktion in a new thread, but i got always a "TargetInvocationException"

Code: [Select]
_innerException = {"Inadmissible accesses to a storage area . (Exception of  HRESULT: 0x800703E6)"}

_HResult = -2147023898
_source = "Interop.BluetoothFrameworkX"

I tried this with System.Threading.Thread and with that System.ComponentModel.BackgroundWorker, but the Exception is the same.

how can I realize that? is it possible?

Thx...
Robat2061

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2491
  • Karma: 1000
    • Wireless Communication Library
Good day!

In attachment is the demo how to use dinamicaly created objects. You can create the Discvoery dinamicaly in your thread and it will work fine.

Thanks.
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager