Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

In my LG VX 9400 whenever the Service Interruption comes.....in my Application ...device getting Rebooted !!!! How can i handle this service interruption ?? But it is working fine with MaxFile Count and BusyTool Application.

Did you debug ? which event do you get ?

Did you debug ? which event do you get ?

ya, i do have checked on App Logger but nothing is shown over there !!!! I have tried to handle it through "EVT_APP_SUSPEND" and "EVT_APP_RESUME" but i dint get anything fruitfull .

ya, i do have checked on App Logger but nothing is shown over there !!!! I have tried to handle it through "EVT_APP_SUSPEND" and "EVT_APP_RESUME" but i dint get anything fruitfull .

Enable brew debug sequence and choose options from debug app ( ###123#) and check logs.

Enable brew debug sequence and choose options from debug app ( ###123#) and check logs.

I have tried with ###123# but it is giving "Unable to retrieve catalog.Please try again later.(18) " !!!

I have tried with ###123# but it is giving "Unable to retrieve catalog.Please try again later.(18) " !!!

that error is from App manager :) not from the debug app.
Did you get 'BREW Debug Enabled' or such message on the top of your device screen after enabling brew debug mode ?

that error is from App manager :) not from the debug app.
Did you get 'BREW Debug Enabled' or such message on the top of your device screen after enabling brew debug mode ?

nops............

nops............

Rebooting generally happens when application crashes on the handset. Try Log2file to log events in file. That is much batter than Logger.
void Log2File(const char* txt)
{
// if the file doesn't exist yet, we create it:
char newLine[3] = {'\r','\n','\0'};
IShell* pIShell=((AEEApplet*)GETAPPINSTANCE())->m_pIShell;
IFile* pIFile ;
IFileMgr* pIFileMgr;
boolean bExists;
ISHELL_CreateInstance( pIShell, AEECLSID_FILEMGR, (void **)(&pIFileMgr) );
if( !pIFileMgr )
return;
bExists = (IFILEMGR_Test(pIFileMgr, "Log.txt") == SUCCESS );
pIFile = IFILEMGR_OpenFile( pIFileMgr, "Log.txt", bExists ? _OFM_APPEND : _OFM_CREATE );
IFILEMGR_Release( pIFileMgr ); // done with file mgr
if( pIFile )
{
IFILE_Write( pIFile, (const void*)txt, STRLEN(txt) );
IFILE_Write( pIFile, (const void*)newLine, STRLEN(newLine) );
IFILE_Release( pIFile );
}

Rebooting generally happens when application crashes on the handset. Try Log2file to log events in file. That is much batter than Logger.
void Log2File(const char* txt)
{
// if the file doesn't exist yet, we create it:
char newLine[3] = {'\r','\n','\0'};
IShell* pIShell=((AEEApplet*)GETAPPINSTANCE())->m_pIShell;
IFile* pIFile ;
IFileMgr* pIFileMgr;
boolean bExists;
ISHELL_CreateInstance( pIShell, AEECLSID_FILEMGR, (void **)(&pIFileMgr) );
if( !pIFileMgr )
return;
bExists = (IFILEMGR_Test(pIFileMgr, "Log.txt") == SUCCESS );
pIFile = IFILEMGR_OpenFile( pIFileMgr, "Log.txt", bExists ? _OFM_APPEND : _OFM_CREATE );
IFILEMGR_Release( pIFileMgr ); // done with file mgr
if( pIFile )
{
IFILE_Write( pIFile, (const void*)txt, STRLEN(txt) );
IFILE_Write( pIFile, (const void*)newLine, STRLEN(newLine) );
IFILE_Release( pIFile );
}

Where should i implement this code? in the RMS handle portion or EVT_SUSPEND portion?

Where should i implement this code? in the RMS handle portion or EVT_SUSPEND portion?

call Log2File() wherever you fill control may go. You won't get all logged messages using Logger becuase message logging in Logger is not synchronous. But using Log2File, you can see where exactly or in which part of code, your application is not executing properly. It's similar to DBGPRINTF but i prefer Log2File over DBGPRINTF because of its synchronous execution.

call Log2File() wherever you fill control may go. You won't get all logged messages using Logger becuase message logging in Logger is not synchronous. But using Log2File, you can see where exactly or in which part of code, your application is not executing properly. It's similar to DBGPRINTF but i prefer Log2File over DBGPRINTF because of its synchronous execution.