What are the steps and techniques to debug an apparent hang due to a deadlock in a Win32 production process. I heard that WinDbg can be used for this purpose but could you please provide clear hints on how this can be accomplished?
To apply the deadlock detection to your application with PostSharp Tools for Visual Studio: Right click on your solution in Solution Explorer, select Add followed by PostSharp Policy... In the Add PostSharp policy wizard, expand Threading and select Deadlock detection.
A deadlock is a condition where 2 (or more) processes attempt to access a resource that the other holds a lock on. Since each process has a request for the other's resource, neither process can be completed.
This post should get you started on the various options..Check the posts tagged with Debugging..
Another useful article on debugging deadlocks..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With