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

Developer

Forums

Forums:

I am trying to move files from one folder to another in a while loop, which crashes the phone.

 

When the files are less than 20MB the operation is working fine, but when the files are more than 20 MB phone was restting.

So can you please help me out, what i have to do to move all the files.

Yes this may happen in tight loop and device may crash showing watchdog timeout error. You may want to use timer to give some delay. this will solve the problem

Yes this may happen in tight loop and device may crash showing watchdog timeout error. You may want to use timer to give some delay. this will solve the problem

You should not perform any activity which may be lengthy within a loop in Brew or any other real-time OS. All lengthy activities should be broken into chunks and performed within an event loop to give other code the chance to execute between each chunk, and in this case prevent the watchdog timeout from thinking your program has become unresponsive (which it has).

You should not perform any activity which may be lengthy within a loop in Brew or any other real-time OS. All lengthy activities should be broken into chunks and performed within an event loop to give other code the chance to execute between each chunk, and in this case prevent the watchdog timeout from thinking your program has become unresponsive (which it has).