Hung Winforms app does not trigger dump file using procDump64

120 Views Asked by At

I'm learning how to use procdump64 to automatically create a dump file when a program hangs.

I created a simple Winforms application which will get into a deadlock when a button is hit.

I issued a command like this:

C:\Users\vl\source\repos\MyApp\MyApp\bin\Release\procdump64 -h Myapp.exe

I can see procdump started monitoring. I then hit the button and my form became not responsive anymore. However, there is no dump file generated even after a long time.

What could be the problem?

Thank you!

1

There are 1 best solutions below

1
Girl Spider On

It seems the dump file will only be generated when the app you are running show up as Not responding in Task Manager. I do not know why my app which is definitely deadlocked is not being detected as not responding by Task Manager, but it does shed light on why no dump file is generated when my app hangs.