473,672 Members | 2,597 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Debugging Application Crashes

Morning!

I have this C# application that occasionally crashes complely and doesn't
return any error to the VS IDE. The crash comes as a Microsoft error dialog
stating "Application.Ex e has encountered a problem and needs to close.". It
allows me to examine an error signature but i have no idea how to use this
to my advantage. When I click debug I get an error message from the JIT
debugger stating that an "Unhandled Win32 Exception" has occured in
Application.exe . However, a debugger that cannot handle the exception type
is already attached to the process." FYI: I am running the application
through the VS IDE.

The strange thing about this error is that sometimes the application is
dormant (no user activity) but will crash when another application starts.
My question is how I should go about trying to find out what is actually
causing this error. Are there some advanced debug tool out there that might
be able to provide some more information? I don't even know where to begin.

Also interesting to note is that this error only occurs when using the SAP
..NET connector. (v2.0). I have posted on the SAP connector forums about
this but so far no one else seems to have experienced this problem.

If anyone has any tips I would really appreciate them.

Thanks in advance,
Charles


Nov 16 '05 #1
1 2580
You might find this link useful

http://support.microsoft.com/default...;EN-US;Q286350

You will probably want to use Windbg.

http://www.microsoft.com/whdc/devtoo...ebugstart.mspx

Launch the exe from within windbg and look at the calkl stacks of when the
problem occurs.

Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only

This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.c om/info/cpyright.htm"
Nov 16 '05 #2

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

Similar topics

0
1122
by: PaulG | last post by:
(I've not found a solution to this anywhere else, so..) With a simple one line file: print "Hello world" if you use pythonwin debugging to step through one line at a time, it crashes pythonwin at line 157 of queue.py. Running the file on it's own, of course, works fine. Anyone else found the same problem/come up with a solution/etc? It's
2
4941
by: markusszil | last post by:
Hello all, I am working on an application which uses quite a few bitmaps as skins for custom controls. I am getting a very difficult bug to track - my application performs quite a few bitmap operations which use a timer to help time-slice so the UI remains responsive. At one point, I am setting a flag to indicate to the timer that a particular control needs to have its background refreshed. This is placed into a list for future...
0
971
by: RyanW | last post by:
How do debug an application that crashes with an unhandled exception error before it gets to the first line of static void Main .... ? // My Code
2
2160
by: SStewart | last post by:
I have a deployed application that is being reported as crashing with the following dialogue box message: ---------------- MyApplicaton.exe - Common Language Runtime Debugging Services Application has generated an exception that could not be handled. Process id=0x240 (576), Thread id=0x2c0 (704).
3
2116
by: Max Christian | last post by:
I'm writing a mixed-mode C++ DLL which is used by an old C++ application that I don't have the source code to. I'm amazed by the ease of interoperability, but the one problem I'm having is debugging the DLL, as the C++ app crashes if loaded into the debugger. If I could just get the line number on which an exception occurred that would be enough to fix most bugs. At the moment I use exception.ToString() and get a stack trace but it's...
0
248
by: Brian Henry | last post by:
I've been fighting with the Visual Studio.Net CLR debugger for a while and am getting pretty fed up. I'm trying to debug an asp.net application. I have all my debug tags set to true. And I have debugging enabled on my web server. When i try to do standard debugging, I get an error saying that debugging cannot start because there is no managed code running in the process, and that I need to have the code running and then attach. Fine,...
0
880
by: amitmnagarwal | last post by:
Hi, I have an ASP.Net application. When I start debugging it in VS.Net 2002, after few lines of debugging, for reason i dont know the whole devenv crashes. The application event log has the following error: Event Type: Error Event Source: Microsoft Development Environment Event Category: None Event ID: 1000
20
4193
by: krypto.wizard | last post by:
Is there any editor or IDE in Python (either Windows or Linux) which has very good debugging facilites like MS VisualStudio has or something like that. I like SPE but couldn't easily use winPDP. I need tips to debug my code easily. Every help is greatly appreciated. Thanks
3
1470
by: CBKowitz | last post by:
Has anyone encountered this problem? I start debugging my application and the session get reset (as far as I can tell). I then stop and restart and everything is fine. Basically the symptoms are as follows: after starting the application, everything is fine and the session variables are set. I get to my 'main' page and click on a button to search or go to another page and the application crashes because the session variables contain...
0
8502
marktang
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...
0
8418
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8943
Oralloy
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...
1
8638
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,...
0
8696
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 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...
0
7466
agi2029
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...
1
6254
isladogs
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...
0
5720
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();...
1
2836
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.