I have finaly traced a crash in the 5.4 simulator.
It would seam that calling BtLibOpen causes the crash.
I am using SysLibFind/SysLibLoad to get the referance no for BtLibOpen,
and am passing true so the radio can fail. This code works fine on all
devices I have tested on (TT, T3, T5 Treo 650) so I do not believe there
is a bug the the code.
Is it posible to set the simulator up to use my laptop's bluetooth
hardware? I have a Dell Inspiron 8600.
void palm_bluetooth::LoadBTLibrary()
{
bool BTLibLoaded = false;
Err err;
// Find the Library
if( SysLibFind( btLibName, &m_BTRef) )
{
// load it if it can't be found
err = SysLibLoad( sysFileTLibrary , sysFileCBtLib, &m_BTRef) ;
if( errNone == err)
{
BTLibLoaded = true;
}
}
else
{
BTLibLoaded = true;
}
if (BTLibLoaded)
{
err = BtLibOpen(m_BTRef,true);
if ((errNone == err) || (btLibErrRadioInitFailed ==err)
||(btLibErrAlreadyOpen == err))
{
m_is_valid = true;
if (err != btLibErrRadioInitFailed)
{
m_StackOK = true;
}
}
else
{
m_close_on_exit = false;
m_is_valid = true;
m_use_cache = true;
}
}
else
{
m_close_on_exit = false;
m_is_valid = false;
m_use_cache = false;
}
}
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/