schumi
Posts: 1
Joined: Sun Jul 19, 2009 10:22 pm

Hang at GetNetwork

Sun Jul 19, 2009 10:29 pm

Hello,
I'm running the latest Bluetools stack on a Windows CE 5.0 ARM9 processor with MS Stack on CSR Chip. The FindandConnect .NET demo application works fine. But when I run a MFC application using the Bluetools libs the device hangs at GetNetwork and never comes back. Any ideas?
- I've tried both ARM and ARMv4i dlls
- I've run the MFC in the same folder with .NET demo to make sure same dlls are used.
Below is the snippet... PLEASE HELP:

xLicense* license = new xLicense();
license->SetLicenseKey(strKey);

if(license->IsError())
{
// Deal with license error
MessageBox(NULL,_T("Licence Error"), NULL, 0);
}
else
{
xNetworkList* networkList = NULL;

m_manager->GetNetworks(&networkList);

if(m_manager->IsError())
{
MessageBox(NULL,_T("Network error"), NULL, 0);
}
else
{
networkList->GetNetwork(0, &m_network); //............................HANGS!!!!

Return to “BlueTools”