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

Developer

Forums

Forums:

Everytime I use IFILEMGR interface like Test or OpenFile function, the handset powercycle. Is ther any issue about Test or OpenFile function in a specific handset?

Thanks.

Hi,
Are you getting this on handset only..? what about emulator...works fine..?
Regards,
Mitesh

Hi,
Are you getting this on handset only..? what about emulator...works fine..?
Regards,
Mitesh

Yes, it only happened in handset not in simulator.
THanks.

Yes, it only happened in handset not in simulator.
THanks.

sasayins wrote:Yes, it only happened in handset not in simulator.
THanks.
I hope you have set the File previleges in the MIF settings.
Also the FileMgr instance is getting created properly.
Please have a look and tell.
Regards,
Akshay

sasayins wrote:Yes, it only happened in handset not in simulator.
THanks.
I hope you have set the File previleges in the MIF settings.
Also the FileMgr instance is getting created properly.
Please have a look and tell.
Regards,
Akshay

Yes sir, File is enabled in MIF and IFileMgr created properly.
But I think, my IThread got something to do with it. Because I can access a file before IThread_Start, but when I access a file inside of the callback function of Ithread, a power cycle occur.
I played my I thread like putting different stack size and tried putting some yielding process but still failed.
Any tips using this IThread?
Thanks.

Yes sir, File is enabled in MIF and IFileMgr created properly.
But I think, my IThread got something to do with it. Because I can access a file before IThread_Start, but when I access a file inside of the callback function of Ithread, a power cycle occur.
I played my I thread like putting different stack size and tried putting some yielding process but still failed.
Any tips using this IThread?
Thanks.

Hi,
Can you try creating IFileManager instance inside your thread. may be IFileManager instance created in application main thread is not accessible to the newly created thread(created using IThread).
Regards,
Mitesh

Hi,
Can you try creating IFileManager instance inside your thread. may be IFileManager instance created in application main thread is not accessible to the newly created thread(created using IThread).
Regards,
Mitesh

Hi,
Yes, I tried creating local IFileMgr in the thread but powercycle occurs. And I noticed that IFileMgr failed after calling ITHREAD_Start function.
Thanks.

Hi,
Yes, I tried creating local IFileMgr in the thread but powercycle occurs. And I noticed that IFileMgr failed after calling ITHREAD_Start function.
Thanks.

sasayins wrote:Hi,
Yes, I tried creating local IFileMgr in the thread but powercycle occurs. And I noticed that IFileMgr failed after calling ITHREAD_Start function.
Thanks.
I think after the you call IThread_start, the control is now in the thread and tat's why the instance is not able to create.
Can u pls tell, wat exactly you are trying to do inside the thread i.e by creating the File instance?

sasayins wrote:Hi,
Yes, I tried creating local IFileMgr in the thread but powercycle occurs. And I noticed that IFileMgr failed after calling ITHREAD_Start function.
Thanks.
I think after the you call IThread_start, the control is now in the thread and tat's why the instance is not able to create.
Can u pls tell, wat exactly you are trying to do inside the thread i.e by creating the File instance?

Yes I agree to you sir.
Inside the thread, it will load the resources, such as opening the bar file, and using IFILEMGR_Test to check if the file is existing.
Thanks.

Yes I agree to you sir.
Inside the thread, it will load the resources, such as opening the bar file, and using IFILEMGR_Test to check if the file is existing.
Thanks.