Focus lost after calling ISHELL_SetTimer() | developer.brewmp.com Focus lost after calling ISHELL_SetTimer() | developer.brewmp.com

Developer

Focus lost after calling ISHELL_SetTimer()

Forums:

Hello Everyone,

Well the problem i m facing is very weird as i made an application in which i call ISHELL_SetTimer() .. but its not working as it never calls the callback .. atfirst i thought that i may be a code problem .. but when i copy the exact line to other application .. it works .. now i have 3 applications .. and ISHELL_SetTimer() is working fine on only one app .. and not returning in remaining 2 app ...

What should be the problem?? .. here is my code:

typeref struct _MyApp
{
ISHELL *pIShell;
MyApp;

boolean MyApp_HandleEvent()
{
EVT_APP_START:
Timer(pMe);
return (TRUE);

void StartService(void* pMe)
{
MyApp* pApp = (MyApp*)pMe;

void Timer(MyApp* pMe)
{
ISHELL_SetTimer(pMe->pIShell,100,(PFNNOTIFY)StartService,(void*)pMe);

but the StartService is never called .. and the focus lost somewhere after calling ISHELL_SetTimer() ...

if i m doing something wrong then do let me know ..

Thanx n Regards,
Sallu.

Looks like this is not the exact code.
Anyway - checkout the pIShell and pMe if they have good values. Some time there are chances on demo app you might alter pMe variables. The first few pMe members orders are treated as mandatory. So keep the the pMe structre from the working one to this non-working version & try.
Also check if timer() is called.

Looks like this is not the exact code.
Anyway - checkout the pIShell and pMe if they have good values. Some time there are chances on demo app you might alter pMe variables. The first few pMe members orders are treated as mandatory. So keep the the pMe structre from the working one to this non-working version & try.
Also check if timer() is called.