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

Developer

Forums

Forums:

When I port my application on device and select Event Handle tool option and press ok to check my application has passed or failed.Instead of above feature device restarts.Plz help me as soon as possible

Thanks in advance
ami

Debug your app - specially handleevent method.

Debug your app - specially handleevent method.

hai,
I debuged my handle event and handled my all event.but it restart when i choose handleevent and click on my application icon it restarts
instead of giving passed or fail message.Below is my handle event.plz help me as soon as possible
static boolean invinf_HandleEvent(invinf* pMe, AEEEvent eCode, uint16 wParam, uint32 dwParam)
{
switch (eCode)
{
// App is told it is starting up
case EVT_APP_START:
// ISHELL_CreateInstance(pMe->pIShell,AEECLSID_GRAPHICS,(void **)&pMe->pIGraphics);
//funDrawRect(pMe,1);
{
int error = SUCCESS;
int ret;
BackLightOn( pMe);
//ƒƒ‚ƒŠƒ`ƒFƒbƒN
// if(HeapCheck(pMe->pIShell, CHECK_SIZE_HEAP_TOTAL, CHECK_SIZE_MALLOC) != SUCCESS){
CheckEFS(pMe);
if(pMe->RMSFULL == TRUE)
{
error = ERROR_MEMORY;
}
//ƒtƒHƒ“ƒg
// ISHELL_CreateInstance(pMe->pIShell, KDDI_FONT_FIXED12X12, (void**)&pMe->font); //Amit on 25th Aug
if(pMe->font){
pMe->defFont = IDISPLAY_SetFont(pMe->pIDisplay, AEE_FONT_NORMAL, pMe->font);
}
//‰Šú‰»
ret = InvinfSys_Init(&pMe->invinfSys, pMe->pIShell, pMe->pIDisplay, pMe->screenWidth, pMe->screenHeight);
if((error == SUCCESS) && (ret != SUCCESS)){
error = ret;
}
if(error != SUCCESS){
if(error == ERROR_MEMORY){
pMe->invinfSys.scene = InvinfSys_SCENE_ERR_MEM;
}else if(error == ERROR_EFS){
pMe->invinfSys.scene = InvinfSys_SCENE_ERR_FILE;
}
/*else{
pMe->invinfSys.scene = InvinfSys_SCENE_ERR_RUN;
}*/
}
ISHELL_SetTimer(pMe->pIShell, 10, (PFNNOTIFY)gameMain, pMe);
}
return(TRUE);
// App is told it is exiting
case EVT_APP_STOP:
// Add your code here...
return(TRUE);
// App is being suspended
case EVT_APP_SUSPEND:
// Add your code here...
ISHELL_CancelTimer(pMe->pIShell, NULL, pMe);
pMe->key=0;
pMe->keyRepeat=0;
InvinfSys_Suspend(&pMe->invinfSys);
return(TRUE);
// App is being resumed
case EVT_APP_RESUME:
// Add your code here...
pMe->key=0;
pMe->keyRepeat=0;
InvinfSys_Resume(&pMe->invinfSys);
ISHELL_SetTimer(pMe->pIShell, (1000/FPS), (PFNNOTIFY)gameMain, pMe);
return(TRUE);
case EVT_FLIP:
/*if(wParam == TRUE){
//ƒtƒŠƒbƒvŠJ‚*
pMe->key=0;
pMe->keyRepeat=0;
InvinfSys_UnPause(&pMe->invinfSys);
if(pMe->invinfSys.scene != InvinfSys_SCENE_NETWORK){
ISHELL_SetTimer(pMe->pIShell, (1000/FPS), (PFNNOTIFY)gameMain, pMe);
}
}else{
//ƒtƒŠƒbƒv•Â‚¶‚é
if(pMe->invinfSys.scene != InvinfSys_SCENE_NETWORK){
ISHELL_CancelTimer(pMe->pIShell, NULL, pMe);
}
pMe->key=0;
pMe->keyRepeat=0;
InvinfSys_Pause(&pMe->invinfSys);
}*/
if(pMe->invinfSys.scene != InvinfSys_SCENE_NETWORK)
{
ISHELL_CancelTimer(pMe->pIShell, NULL, pMe);
}
pMe->key=0;
pMe->keyRepeat=0;
ISHELL_CloseApplet(pMe->pIShell,FALSE);
//return(TRUE);
return(TRUE);
// An SMS message has arrived for this app. Message is in the dwParam above as (char *)
// sender simply uses this format "//BREW:ClassId:Message", example //BREW:0x00000001:Hello World
case EVT_APP_MESSAGE:
// Add your code here...
return(TRUE);
.
case EVT_KEY:
// Add your code here...
return(TRUE);
case EVT_KEY_PRESS:
keyPress(pMe, wParam);
return(TRUE);
case EVT_KEY_RELEASE:
keyRelease(pMe, wParam);
return(TRUE);
case EVT_APP_NO_SLEEP:
return TRUE;
// If nothing fits up to this point then we'll just break out
default:
break;
}
return FALSE;

Thnx
ami

hai,
I debuged my handle event and handled my all event.but it restart when i choose handleevent and click on my application icon it restarts
instead of giving passed or fail message.Below is my handle event.plz help me as soon as possible
static boolean invinf_HandleEvent(invinf* pMe, AEEEvent eCode, uint16 wParam, uint32 dwParam)
{
switch (eCode)
{
// App is told it is starting up
case EVT_APP_START:
// ISHELL_CreateInstance(pMe->pIShell,AEECLSID_GRAPHICS,(void **)&pMe->pIGraphics);
//funDrawRect(pMe,1);
{
int error = SUCCESS;
int ret;
BackLightOn( pMe);
//ƒƒ‚ƒŠƒ`ƒFƒbƒN
// if(HeapCheck(pMe->pIShell, CHECK_SIZE_HEAP_TOTAL, CHECK_SIZE_MALLOC) != SUCCESS){
CheckEFS(pMe);
if(pMe->RMSFULL == TRUE)
{
error = ERROR_MEMORY;
}
//ƒtƒHƒ“ƒg
// ISHELL_CreateInstance(pMe->pIShell, KDDI_FONT_FIXED12X12, (void**)&pMe->font); //Amit on 25th Aug
if(pMe->font){
pMe->defFont = IDISPLAY_SetFont(pMe->pIDisplay, AEE_FONT_NORMAL, pMe->font);
}
//‰Šú‰»
ret = InvinfSys_Init(&pMe->invinfSys, pMe->pIShell, pMe->pIDisplay, pMe->screenWidth, pMe->screenHeight);
if((error == SUCCESS) && (ret != SUCCESS)){
error = ret;
}
if(error != SUCCESS){
if(error == ERROR_MEMORY){
pMe->invinfSys.scene = InvinfSys_SCENE_ERR_MEM;
}else if(error == ERROR_EFS){
pMe->invinfSys.scene = InvinfSys_SCENE_ERR_FILE;
}
/*else{
pMe->invinfSys.scene = InvinfSys_SCENE_ERR_RUN;
}*/
}
ISHELL_SetTimer(pMe->pIShell, 10, (PFNNOTIFY)gameMain, pMe);
}
return(TRUE);
// App is told it is exiting
case EVT_APP_STOP:
// Add your code here...
return(TRUE);
// App is being suspended
case EVT_APP_SUSPEND:
// Add your code here...
ISHELL_CancelTimer(pMe->pIShell, NULL, pMe);
pMe->key=0;
pMe->keyRepeat=0;
InvinfSys_Suspend(&pMe->invinfSys);
return(TRUE);
// App is being resumed
case EVT_APP_RESUME:
// Add your code here...
pMe->key=0;
pMe->keyRepeat=0;
InvinfSys_Resume(&pMe->invinfSys);
ISHELL_SetTimer(pMe->pIShell, (1000/FPS), (PFNNOTIFY)gameMain, pMe);
return(TRUE);
case EVT_FLIP:
/*if(wParam == TRUE){
//ƒtƒŠƒbƒvŠJ‚*
pMe->key=0;
pMe->keyRepeat=0;
InvinfSys_UnPause(&pMe->invinfSys);
if(pMe->invinfSys.scene != InvinfSys_SCENE_NETWORK){
ISHELL_SetTimer(pMe->pIShell, (1000/FPS), (PFNNOTIFY)gameMain, pMe);
}
}else{
//ƒtƒŠƒbƒv•Â‚¶‚é
if(pMe->invinfSys.scene != InvinfSys_SCENE_NETWORK){
ISHELL_CancelTimer(pMe->pIShell, NULL, pMe);
}
pMe->key=0;
pMe->keyRepeat=0;
InvinfSys_Pause(&pMe->invinfSys);
}*/
if(pMe->invinfSys.scene != InvinfSys_SCENE_NETWORK)
{
ISHELL_CancelTimer(pMe->pIShell, NULL, pMe);
}
pMe->key=0;
pMe->keyRepeat=0;
ISHELL_CloseApplet(pMe->pIShell,FALSE);
//return(TRUE);
return(TRUE);
// An SMS message has arrived for this app. Message is in the dwParam above as (char *)
// sender simply uses this format "//BREW:ClassId:Message", example //BREW:0x00000001:Hello World
case EVT_APP_MESSAGE:
// Add your code here...
return(TRUE);
.
case EVT_KEY:
// Add your code here...
return(TRUE);
case EVT_KEY_PRESS:
keyPress(pMe, wParam);
return(TRUE);
case EVT_KEY_RELEASE:
keyRelease(pMe, wParam);
return(TRUE);
case EVT_APP_NO_SLEEP:
return TRUE;
// If nothing fits up to this point then we'll just break out
default:
break;
}
return FALSE;

Thnx
ami