473,803 Members | 3,637 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 2588
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
1130
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
4949
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
974
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
2165
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
2123
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
884
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
4215
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
1482
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
9703
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
9564
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
10548
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...
0
10069
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...
1
7604
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
6842
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();...
0
5500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
bsmnconsultancy
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...

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.