Author Topic: call wclBluetoothDiscovery.Discovery(Radio) nothing happends  (Read 7152 times)

xnio

  • Guest
call wclBluetoothDiscovery.Discovery(Radio) nothing happends
« on: January 05, 2010, 10:48:13 PM »
Hi friends, i am evaluated the  Wireless Communication Library .NET Edition , i did a console aplication but when I called the following function:

wclBluetoothDiscovery.Discovery(Radio);

nothing happends, the events "wclBluetoothDiscovery_OnDiscoveryStarted" and "wclBluetoothDiscovery_OnDiscoveryStarted" didn't fire, how can i fires the events.

the same happend when i tried the execute the following:

wclClient.Connect();

please your help,

regards

Ricardo T.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: call wclBluetoothDiscovery.Discovery(Radio) nothing happends
« Reply #1 on: January 06, 2010, 08:19:36 AM »
Hi

Please, post your example code how you do it.

atott

  • Guest
Re: call wclBluetoothDiscovery.Discovery(Radio) nothing happends
« Reply #2 on: February 06, 2010, 07:57:35 PM »
Hello from Russia!

If i call method from winFromsApplication thread it's OK, but if Iicall method from other thread or thread of console application i have this problem. Please, help me!!!

Anton Zvonov.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: call wclBluetoothDiscovery.Discovery(Radio) nothing happends
« Reply #3 on: February 06, 2010, 08:03:24 PM »
Hi,

WCL .NET includes demo (OPPThread) shows how to use it in threads. However, you have to be sure that any class is used in the same thread where it was created (otherwise you may have synchronization issue). Also here (on this forum) should be a sample shows how to use WCL in conole app.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: call wclBluetoothDiscovery.Discovery(Radio) nothing happends
« Reply #4 on: February 06, 2010, 08:04:31 PM »
BTW, take a look on service demo - it is very close to console app.

 

Sitemap 1 2 3 4 5 6 7