How to use IShell_resume() for asynch mode | developer.brewmp.com How to use IShell_resume() for asynch mode | developer.brewmp.com

Developer

How to use IShell_resume() for asynch mode

Forums:

Hello all,

I wan to use recursive function calling using IShell_resume() in asynch mode...

I used, but callback function is not get called, any sugesion plz

How to use IShell_resume() ...How to set its paramtere , 

Thanks in advance !! 

after calling ISHELL_Resume(), return control to Brew. only then you cb function will be called.

after calling ISHELL_Resume(), return control to Brew. only then you cb function will be called.

Hie Spratap,
I know that and even i used in program. It is running fine for everywhere except for parsing.? What whold be the reason ?
 
Thanks! 

Hie Spratap,
I know that and even i used in program. It is running fine for everywhere except for parsing.? What whold be the reason ?
 
Thanks! 

you mean if you disable your parser code in the function it gets called as expected?

you mean if you disable your parser code in the function it gets called as expected?

nah, I am not getting call back after resume :(
 

nah, I am not getting call back after resume :(
 

here is what i would do to debug.
disable/comment all functionality of App first. then check as below.
//AEECallback gCallback; in Apps main struct
 AppsMainEventHandler(....)  {
....
case App start:
function1(pMe)
return TRUE;
..
..
 
 
 
void function1(myApp *pMe)
{
        DBGPRINTF("**Shell resume");
        CALLBACK_Init(&pMe->gCallback, (PFNNOTIFY)function1, pMe);        ISHELL_Resume(pMe->a.m_pIShell, &pMe->gCallback);
}
 
 

here is what i would do to debug.
disable/comment all functionality of App first. then check as below.
//AEECallback gCallback; in Apps main struct
 AppsMainEventHandler(....)  {
....
case App start:
function1(pMe)
return TRUE;
..
..
 
 
 
void function1(myApp *pMe)
{
        DBGPRINTF("**Shell resume");
        CALLBACK_Init(&pMe->gCallback, (PFNNOTIFY)function1, pMe);        ISHELL_Resume(pMe->a.m_pIShell, &pMe->gCallback);
}
 
 

check logs to first verify this is working.
then slowly open your code step by step moving things to original position and see whats happenening.
 

check logs to first verify this is working.
then slowly open your code step by step moving things to original position and see whats happenening.