Wireless Communication Library Support Forum

Common => Common => Topic started by: abw on June 28, 2010, 02:17:39 PM

Title: CwclAPI::Unload() hangs
Post by: abw 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
Title: Re: CwclAPI::Unload() hangs
Post by: Mike Petrichenko 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.
Title: Re: CwclAPI::Unload() hangs
Post by: abw 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