EC200U Bluescreen

Hey Victor,

I placed the above code in my while (1) loop in one of thread.

observed that stack available keeps decreasing and once it goes below 10,000 Bluescreen event restart the application.

How to address the condition, i have 5 threads in application? how to pinpoint the error and the specific routine of the application which must be decreasing available stacks?