motorola handse | developer.brewmp.com motorola handse | developer.brewmp.com

Developer

motorola handse

Forums:

I'm facing a problem (motorola handset)a when call EVT_APP_STOP that time device hang . Has anyone ever encountered such an issue while working on this device?
plz Guide me

exmp

case EVT_APP_STOP:
{

ISHELL_CancelTimer();
call freeappdat();
ISHELL_CloseApplet(pMe->pIShell, TRUE);
return TRUE;

Regards,
rajesh Bhati

I'm facing a problem (motorola handset)a when call EVT_APP_STOP that time device hang . Has anyone ever encountered such an issue while working on this device?
plz Guide me
exmp
case EVT_APP_STOP:
{
ISHELL_CancelTimer();
call freeappdat();
ISHELL_CloseApplet(pMe->pIShell, TRUE);
return TRUE;

Regards,
rajesh

I'm facing a problem (motorola handset)a when call EVT_APP_STOP that time device hang . Has anyone ever encountered such an issue while working on this device?
plz Guide me
exmp
case EVT_APP_STOP:
{
ISHELL_CancelTimer();
call freeappdat();
ISHELL_CloseApplet(pMe->pIShell, TRUE);
return TRUE;

Regards,
rajesh

Rajesh Bhati wrote:I'm facing a problem (motorola handset)a when call EVT_APP_STOP that time device hang . Has anyone ever encountered such an issue while working on this device?
plz Guide me
exmp
case EVT_APP_STOP:
{
ISHELL_CancelTimer();
call freeappdat();
ISHELL_CloseApplet(pMe->pIShell, TRUE);
return TRUE;

Regards,
rajesh Bhati
1. You don't need to be calling ISHELL_CloseApplet(). EVT_APP_STOP is only sent when your application is already being closed.
2. If you free anythying in the freeappdat() method that is freed/released in your app's cleanup function, you could potentially be double-freeing or doubl-releasing. This sometimes causes problems.

Rajesh Bhati wrote:I'm facing a problem (motorola handset)a when call EVT_APP_STOP that time device hang . Has anyone ever encountered such an issue while working on this device?
plz Guide me
exmp
case EVT_APP_STOP:
{
ISHELL_CancelTimer();
call freeappdat();
ISHELL_CloseApplet(pMe->pIShell, TRUE);
return TRUE;

Regards,
rajesh Bhati
1. You don't need to be calling ISHELL_CloseApplet(). EVT_APP_STOP is only sent when your application is already being closed.
2. If you free anythying in the freeappdat() method that is freed/released in your app's cleanup function, you could potentially be double-freeing or doubl-releasing. This sometimes causes problems.

Thanks
But, i use
case EVT_APP_STOP:
{
return TRUE;

problem is same
Regards,
rajesh Bhati

Thanks
But, i use
case EVT_APP_STOP:
{
return TRUE;

problem is same
Regards,
rajesh Bhati

I am facing problem with motorola handset
When application exit, device get hang;
i observe that these problem having some concern with sound,when i commented sound code in application the application exit properly.
code for the sound is as follows:
test sound
1 SOUNDPLAYER
exmp
void playSound1(application *pMe)
{
if(pMe->sound_player!=NULL)
{
ISOUNDPLAYER_Stop(pMe->sound_player);
ISOUNDPLAYER_Release(pMe->sound_player);
pMe->sound_player =NULL;
}
if( (pMe->sound_player = ISHELL_LoadSound(pMe->pIShell,"start.mid"))==NULL)
{
return ;
}
else
{
if(pMe->sound_player!=NULL)
{
ISOUNDPLAYER_Play(pMe->sound_player);
}
}
}
and free appdata
if(pMe->sound_player!=NULL)
{
ISOUNDPLAYER_Stop(pMe->sound_player);
ISOUNDPLAYER_Release(pMe->sound_player);
pMe->sound_player =NULL;
}
2 IMEDIA->
void run_background_sound(application *pMe)
{
if(pMe->menu_state_ui8 & 128)
{
IMEDIA_SetMediaData(pMe->p_aarti_media, &pMe->mediainfo);
IMEDIA_SetVolume(pMe->p_aarti_media, AEE_MAX_VOLUME);
//IMEDIA_SetVolume(pMe->p_aarti_media, 4);
IMEDIA_RegisterNotify(pMe->p_aarti_media, (PFNMEDIANOTIFY)Sound2_Callback, (void *)pMe);
IMEDIA_Play(pMe->p_aarti_media);
}
}
void Sound2_Callback(void * pUser, AEEMediaCmdNotify * pCmdNotify)
{
application *pMe = (application *)pUser;
//upon finishing tune, play again
IMEDIA_Play(pMe->p_aarti_media);

The Application gives no problem in playing sound,but if sound code is used the application gives problem during exit(the device gets hang).
Can you please tell me what could be the reason for this perticular problem,as any known issue for the device.
With Regards
Rajesh Bhati

I am facing problem with motorola handset
When application exit, device get hang;
i observe that these problem having some concern with sound,when i commented sound code in application the application exit properly.
code for the sound is as follows:
test sound
1 SOUNDPLAYER
exmp
void playSound1(application *pMe)
{
if(pMe->sound_player!=NULL)
{
ISOUNDPLAYER_Stop(pMe->sound_player);
ISOUNDPLAYER_Release(pMe->sound_player);
pMe->sound_player =NULL;
}
if( (pMe->sound_player = ISHELL_LoadSound(pMe->pIShell,"start.mid"))==NULL)
{
return ;
}
else
{
if(pMe->sound_player!=NULL)
{
ISOUNDPLAYER_Play(pMe->sound_player);
}
}
}
and free appdata
if(pMe->sound_player!=NULL)
{
ISOUNDPLAYER_Stop(pMe->sound_player);
ISOUNDPLAYER_Release(pMe->sound_player);
pMe->sound_player =NULL;
}
2 IMEDIA->
void run_background_sound(application *pMe)
{
if(pMe->menu_state_ui8 & 128)
{
IMEDIA_SetMediaData(pMe->p_aarti_media, &pMe->mediainfo);
IMEDIA_SetVolume(pMe->p_aarti_media, AEE_MAX_VOLUME);
//IMEDIA_SetVolume(pMe->p_aarti_media, 4);
IMEDIA_RegisterNotify(pMe->p_aarti_media, (PFNMEDIANOTIFY)Sound2_Callback, (void *)pMe);
IMEDIA_Play(pMe->p_aarti_media);
}
}
void Sound2_Callback(void * pUser, AEEMediaCmdNotify * pCmdNotify)
{
application *pMe = (application *)pUser;
//upon finishing tune, play again
IMEDIA_Play(pMe->p_aarti_media);

The Application gives no problem in playing sound,but if sound code is used the application gives problem during exit(the device gets hang).
Can you please tell me what could be the reason for this perticular problem,as any known issue for the device.
With Regards
Rajesh Bhati

Well, it is not surprising. ISoundplayer interface is being deprecated by QCOMM, so many handset manufacturer doesn't validate or implement ISoundplayer thoroughly, I would recommend that you use IMedia interface.

Well, it is not surprising. ISoundplayer interface is being deprecated by QCOMM, so many handset manufacturer doesn't validate or implement ISoundplayer thoroughly, I would recommend that you use IMedia interface.

Run a simple helloworld application and check if there is any STOP problem, if none then it is very likely that problem is in your application. You may want to start commenting out the code and see at what point problem disappears.

Run a simple helloworld application and check if there is any STOP problem, if none then it is very likely that problem is in your application. You may want to start commenting out the code and see at what point problem disappears.

Thanks,
but, i commented sound code application proper exit(nothing problem)

Thanks,
but, i commented sound code application proper exit(nothing problem)