473,395 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Stack trace dump of the system and deadlock detection.

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
Nov 15 '05 #1
3 4097
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?

--
Greg Ewing [MVP]
http://www.claritycon.com/

"muscha" <mu****@no.spam.net> wrote in message
news:#7**************@TK2MSFTNGP11.phx.gbl...
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

Nov 15 '05 #2
"Greg Ewing [MVP]" <gewing@_NO_SPAM_claritycon.com> wrote in
news:ul**************@TK2MSFTNGP11.phx.gbl:
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
Nov 15 '05 #3
"Greg Ewing [MVP]" <gewing@_NO_SPAM_claritycon.com> wrote in message
news:ul**************@TK2MSFTNGP11.phx.gbl...
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

--
Greg Ewing [MVP]
http://www.claritycon.com/

"muscha" <mu****@no.spam.net> wrote in message
news:#7**************@TK2MSFTNGP11.phx.gbl...
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


Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nigel Robbins | last post by:
Hi There, I'm getting a deadlock when I have two clients running the following statement. DELETE FROM intermediate.file_os_details WHERE file_uid = ? AND obj_uid There is a compound index on...
1
by: Rohit Raghuwanshi | last post by:
Hello all, we are running a delphi application with DB2 V8.01 which is causing deadlocks when rows are being inserted into a table. Attaching the Event Monitor Log (DEADLOCKS WITH DETAILS) here....
6
by: milkyway | last post by:
Hello out there, When one gets an error, they can use fprintf (Stdout, "File %s Line %d\n", __FILE__, __LINE__); Is there a similar way where on can print out the stack trace? Any help,...
2
by: Verane | last post by:
Hi all, I am writing code in C# using visual studio .NET 2003. I use System.Diagnostics.Trace.Assert, and when I get an assertion at run time, I can see the call stack. But for each line of the...
9
by: Microsoft News Server | last post by:
Hi, I am currently having a problem with random, intermittent lock ups in my ASP.net application on our production server (99% CPU usage by 3 threads, indefinately). I currently use IIS Debug...
2
by: Jürgen Devlieghere | last post by:
Hi, We are creating event-driven multi-threaded applications on a daily basis. To help us solving deadlocks, we implemented a CriticalSection class that does dead-lock detection: an attempt to...
3
by: sukrit.mehra | last post by:
Hi, Please guide me to the right group(s) if the post isn't on topic here. My program is running on a ARM7 h/w on top of an RTOS. I want to dump the names of the functions that were called in...
5
by: Mr. SweatyFinger | last post by:
WHY CAN'T THE CLOWN -HOLES WHO WROTE ASP.NET PROVIDE AN ERROR LINE NUMBER??? HONEST TO SH@THOLE PETE Server Error in '/New Folder (7)' Application....
4
by: call_me_anything | last post by:
Here is a code to have a debug printf : #ifdef DEBUG #define DEBUG_printf(...) {printf(":",__FUNCTION__);printf(__VA_ARGS__);printf("\n");} #else #define DEBUG #endif int main () {
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.