Stack trace dump of the system and deadlock detection.

  • Thread starter Thread starter muscha
  • Start date Start date
M

muscha

Hello,

Is there a function like CTRL-Backspace in .Net / C# like in Java? I suspect
there is a deadlock in my code and I am trying to find it.

thanks,

/m
 
muscha, what do you mean, by a function in Java ctrl-Backspace? Do you mean
a specific IDE? Java as a language doesn't have functions like that, nor
does .Net/C#.

In terms of how to find deadlocks, there is not a tool or a function (that I
know of) which will find that for you. Anyone else heard of such a thing?
 
In terms of how to find deadlocks, there is not a tool or a function
(that I know of) which will find that for you. Anyone else heard of
such a thing?

If you are running from inside the IDE/debugger, click the 'Pause' button
in the debugging toolbar (in between 'Start' and 'Stop'). Of course, well
written, single-threaded code won't tell you much, but this is invaluable
for multi-threaded apps or times when you end up in an infinite loop or in
a deadlock.

-mbray
 
Greg Ewing said:
muscha, what do you mean, by a function in Java ctrl-Backspace? Do you mean
a specific IDE? Java as a language doesn't have functions like that, nor
does .Net/C#.

Sorry, yes my bad. I mean like in Sun's JVM where you can to CTRL-Backspace.
It will drop the current stack trace. Make it really nice to do debugging on
what your threads are doing.
In terms of how to find deadlocks, there is not a tool or a function (that I
know of) which will find that for you. Anyone else heard of such a thing?

Yes anyone? This will be really useful. With Sun's latest JVM it shows you
the number of thread deadlocks in your running program. Wish there is the
same thing in .Net.

/m
 
Back
Top