Author Topic: CwclAPI::Unload() hangs  (Read 2788 times)

Offline abw

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
CwclAPI::Unload() hangs
« on: June 28, 2010, 02:17:39 PM »
Hi,

I'm just testing the connection from a sample program. The connection is successful but when I call the Unload() method of the API my app hangs. After that I cannot connect again for a while (maybe there is a timeout when I can connect again), it throws Unable to connect: error 2.
Can you advice? (if you need I can provide more details)
thnx and
-mfg-
abw

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3055
  • Karma: 1000
    • Soft Service Company
Re: CwclAPI::Unload() hangs
« Reply #1 on: June 28, 2010, 02:20:18 PM »
Hi

It may be as low-level driver may need to do some work. And of course, after API.Unload you may not use WCL as all the subsystems are unloaded.

You must use API.Unload only when your application done (closed) and API.Load when your app starts.

Do not use API.Unload often.
« Last Edit: July 06, 2011, 09:35:02 PM by Mike Petrichenko »

Offline abw

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: CwclAPI::Unload() hangs
« Reply #2 on: June 28, 2010, 02:40:54 PM »
Hi,

of course, I call Unload() in my singleton's destructor, and Load() in my class' constructor. I play with the cleanup a bit, and let you know the result  ;)
thanx for the reply!
-mfg-
abw

 

Sitemap 1 2 3 4 5 6 7 8 9