1

I have a application, its consist of lot of custom controls and while process the operation the application is hangs and the deadlock occurs, i can't able to find the code for deadlock, could you please any one suggest how to find the code for deadlock or is there is any tool to find this?

Mafii
  • 7,227
  • 1
  • 35
  • 55

1 Answers1

0

First of all you check if there is an exception which is thrown on background. In order to turn on the CLR exception to be thrown go Debug/Exception and check the Common Language Runtime Exception check-box. Secondly you can try to pause a debugging session, and try to see where is each thread at the time that the application was dead-locked and research the Callstack. In addition you can trace each place that probably can be a cause to dead-lock.

Here is some SO query that can help you:

  1. C#/.NET analysis tool to find race conditions/deadlocks.

Here are some tool that in my opinion can be useful in this case:

  1. OzCode - can help you to debug and manage situation in a better way(allows to trace the code in a better way and more...).

Regards,

Community
  • 1
  • 1
Ilan
  • 2,762
  • 1
  • 13
  • 24