I have a multi thread MFC application. When I close the application during some operation, the application won't exit completely. I tried break all option in debug mode and found that the control is at AfxinternalPumpMessage in thredcore.cpp. I was not able to locate where in my code the wait is happening.
Is there any other way to locate the exact location in code where the wait happens. I am using VS2010.