Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: xnio on January 05, 2010, 10:48:13 PM

Title: call wclBluetoothDiscovery.Discovery(Radio) nothing happends
Post by: xnio 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.
Title: Re: call wclBluetoothDiscovery.Discovery(Radio) nothing happends
Post by: Mike Petrichenko on January 06, 2010, 08:19:36 AM
Hi

Please, post your example code how you do it.
Title: Re: call wclBluetoothDiscovery.Discovery(Radio) nothing happends
Post by: atott 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.
Title: Re: call wclBluetoothDiscovery.Discovery(Radio) nothing happends
Post by: Mike Petrichenko 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.
Title: Re: call wclBluetoothDiscovery.Discovery(Radio) nothing happends
Post by: Mike Petrichenko on February 06, 2010, 08:04:31 PM
BTW, take a look on service demo - it is very close to console app.