Got the problem with FFIND command

at first,I make a program that list all file in SD card with FFIND function.not using RTOS yet,it's work fine.

then,I using RTOS (use RTX) ,every fuction work fine (such as fopen,fclose,etc) except for FFIND) system will crash when it's reach the line with ffind command,all task stop running .

and, no compile error.

someone pls tell me how to solve the problem,thank in advance.

More questions in this forum