I enabled in /RTCs in my application to detect stack corruption issues. The application has many components(dlls) and the total LOC is about 40K. It has many threads.
Initially I was getting the crash after executing 18000 cycles. But after enabling the /RTCs option, I am getting the carsh within 100 cyles. The crash always occurs in a thread called Reciever Thread. But it crashes consistently at 3 or 4 locations. When the crash occurs almost all local variables looks like corrupted in some cases. But I am not able to identify the root cause as I cannot see any issues around the points at which the crash occurs.
What things can I do to narrow down the point where the stack is corrupting?
The code has try catch statements, will it prevent identifying the cause?
Please help me
Thanks!