I delete telnet task, then create new telnet task successfully, but hyperterm can’t connect the new telnet task.
it seems that Freertos can’t release all resource used by telnet task,
anyone know how to sovle ?
If you delete a task, any resources allocated to the task by the kernel when the task was created will be released by the kernel (namely the task stack and TCB). If the application has taken any other resources (more memory, a semaphore, a mutex, or whatever) then these will not be automatically released - if the application code takes resources then the application code needs to return them and tasks should not be deleted until that has been done.
The number is a unique number that is allocated to each task so you can tell apart different tasks that have the same name. The fact the number has changed means that the old task called TELNET is no longer running, and that a new task is now running which is also called TELNET.