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 3 4108
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******** ******@TK2MSFTN GP11.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
"Greg Ewing [MVP]" <gewing@_NO_SPA M_claritycon.co m> wrote in
news:ul******** ******@TK2MSFTN GP11.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
"Greg Ewing [MVP]" <gewing@_NO_SPA M_claritycon.co m> wrote in message
news:ul******** ******@TK2MSFTN GP11.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******** ******@TK2MSFTN GP11.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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 file_uid / obj_uid.
The isolation level is UR and I have set DB2_RR_TO_RS=YES.
Any thoughts why I'm getting the deadlock ?
|
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. From the log it looks
like the problem happens when 2 threads insert 1 record each in the
same table and then try to aquire a NS (Next Key Share)
lock on the record inserterd by the other thread.
Thanks
Rohit
|
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, hints or advice is appreciated ;-)
|
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 call stack I don't see the line number,
except for the last line of the stack (which corresponds to the
Application.run in fact).
one precision : my application contains several assemblies, and the
|
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 Tools to do a memory dump of the
app when the lock up occurs, however the stack information is not very
useful.
I have just put a new build of our system onto production, and this build is
a "Debug" build as opposed to a "Release" build. I am...
| |
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 Enter() the critical section that
would cause a deadlock logs the complete deadlock loop (thread / Critical
section) and raises an exception. It has helped us a lot in the past.
However, to prevent further deadlocks, and to get a higher...
|
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 the sequence they were
called (stack) onto a file as part of the assert routine. Something
like a core dump in *nix.
How to implement something like this? Where do I need to look?
|
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.
--------------------------------------------------------------------------------
The text, ntext, and image data types cannot be compared or sorted, except
when using IS NULL or LIKE operator.
Description: An unhandled exception occurred during the execution of the
current web request....
|
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 () {
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |