Question

One of our legacy products is a Winforms application and instead of using background threads it does everything on the main UI thread. It has a constant loop running on this main thread that calls Application.DoEvents() every 20 ms. Once in a while the application just hangs at the DoEvents call. My question is how do I find out in what queued event call the code is hanging?

P.S. Does someone know of a tool that I can use to get the stack trace of every thread in a process?

Also, this is only happening at a production client and we got to get a fix out now. No possibility in installing VS at the client either.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top