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

Developer

Forums

I am not sure about the crash happening, why? i am trying to select mulitile tiles randomly from 500 tiles and trying to get any 10 at a time. but some time it happen to crash.

I have seem trend that when tile size is less (displayed fileinfo in loop)and i am reading it using ifile-read it works fine. but when its large then the issue occur.

I also tried to compress the tile size but it could not be compressed uptp certai limit, i am clueless whats the reason of crash?

Crash seems to be obvious as your operation is not giving time Brew to complete one operation and you are going for other operation before completing previous task.
As you said you are using while loop, you need to wait here for first task to complete.
You can use IShell_Settimer() also to gie some delay.
Recommended way is to use callback mechanism and do listen for file read completion status and then only move to other operation.

Crash seems to be obvious as your operation is not giving time Brew to complete one operation and you are going for other operation before completing previous task.
As you said you are using while loop, you need to wait here for first task to complete.
You can use IShell_Settimer() also to gie some delay.
Recommended way is to use callback mechanism and do listen for file read completion status and then only move to other operation.

Thanks, i used timer and crash couldnot seen. can you give code example on web post on server?
Thanks,
Jaya

Thanks, i used timer and crash couldnot seen. can you give code example on web post on server?
Thanks,
Jaya

Use IWeb interface apis, see sample code:
Ex:
CALLBACK_Cancel(&pMe->m_cb);CALLBACK_Init(&pMe->m_cb, utiwebresp_getinfo_01, pMe);
SPRINTF(pMe->m_szURL, "http://%s/", UTIWEB_HTTP_HOST);
IWEB_GetResponse(pMe->m_pIWeb,(pMe->m_pIWeb,&pMe->m_pIWebResp,&pMe->m_cb,pMe->m_szURL,WEBOPT_END)); 

Use IWeb interface apis, see sample code:
Ex:
CALLBACK_Cancel(&pMe->m_cb);CALLBACK_Init(&pMe->m_cb, utiwebresp_getinfo_01, pMe);
SPRINTF(pMe->m_szURL, "http://%s/", UTIWEB_HTTP_HOST);
IWEB_GetResponse(pMe->m_pIWeb,(pMe->m_pIWeb,&pMe->m_pIWebResp,&pMe->m_cb,pMe->m_szURL,WEBOPT_END));