problem with TCP/IP with free RTOS

Hi every one i am new in this forum and excuse me if there is any mistake in my post. i am using PIC32MZ2048EFM144 micro controller with WINC1500 wifi module and Enc28j60 Ethernet module. if i do not mistake the version of FreeRtos is 10.0.1,using mblabxide v5.05 and harmony v2.06. the problem that i have is: when i connect to wifi after awhile (the time is always different ) the two tasks (SysTasks and AppTasks) not running anymore , at this point i see the pic always run inside portTASKFUNCTION( prvIdleTask, pvParameters ) and not exit anymore. i have to add that in _Apptasks(), i added my codes : [code] static void APPTasks(void) { while (1) {
    APP_Tasks();
    vTaskDelay(1 / (portTICK_PERIOD_MS)); //1ms
    //********* my codes here***********
}
} [/code] i do not know and could not understand the reason. i have this problem only with wifi connection.with ethernet connection it does not happen. is there any body that can help me?

problem with TCP/IP with free RTOS

I’m afraid this is a bit Harmony specific, but if adding a delay makes a difference it looks like the app tasks are running without blocking which is starving out other code.