Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: fabiorov on November 18, 2010, 08:42:31 PM

Title: Multithread "WclProximitySenderOnSendComplete" event
Post by: fabiorov on November 18, 2010, 08:42:31 PM
Hi, I'm evaluating WCL for .net.

Reading the demos I see that there is an event called "WclProximitySenderOnSendComplete" and it is ideal for insert rows in a SQLite database (to know the result codes for each phone), but I want to know if this event can de triggered many times simultaneous when multiples phones are receiving files. If it has this behavior it would be a problem because SQLite soesn't support simultaneous writing threads.

thanks in advance.
Title: Re: Multithread "WclProximitySenderOnSendComplete" event
Post by: Mike Petrichenko on November 18, 2010, 09:48:27 PM
Hi

It reports in one thread for each found device. It does not report at the same time.
Title: Re: Multithread "WclProximitySenderOnSendComplete" event
Post by: fabiorov on November 19, 2010, 12:21:43 AM
Ok, Thanks for your answer. Another issue... is it posible that a  thread of "WclProximitySenderOnSendComplete" event to start while another thread is executing... let me explain:

- Event "OnsendComplete"... the thread starts and muy program begin to write in database
- While my program is writing in the database, can another thread of "OnsendComplete" start? or does it wait until the first thread finish?

Thanks
Title: Re: Multithread "WclProximitySenderOnSendComplete" event
Post by: Mike Petrichenko on November 19, 2010, 03:30:59 AM
All the events are always called in main thread.