Max bluetooth already in use Error EVEN after socket close!

Login to reply to this topic.
Wed, 2003-09-24 02:31
Joined: 2003-07-17
Forum posts: 28
Hi,

I am re connecting after cancelling a previous bluetooth operation. But i get the message

"Unable to Connect. Maximum number of bluetooth connections already in use.",  an obnoxious message but goes ahead making the new connection anyway.!? Shocked

I completely close my bluetooth socket before i open it gain for my new connection. I even tried using ioctl to completely break any bluetooth link with previous bluetooth device address. Even that dint help!
Shocked  
DOES anyone know why this is happening? My advance thanks to anyone who can HELP.

regards & thanks

murali

Code used to disconnect using Ioctl -> This dint help either

i.e TLMDisconnectACLBuf aclConnBuf;
aclConnBuf().iDevAddr = AppUi->iSavedJackDevice->iRemoteAddr.BTAddr();
aclConnBuf().iReason = 0x13; // Remote user ended connection
TRequestStatus disconnectStatus;
sock.Ioctl(KLMDisconnectACLIoctl,disconnectStatus, &aclConnBuf, KSolBtLM);
User::WaitForRequest(disconnectStatus);
  • Login to reply to this topic.