473,779 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crash Debugging Problems

I'm rather new with vb.net and I'm having problems debugging a large vb.net
application.

The application is randomly crashing at two locations with "referenced
memory at 0x0" violations. My try-catch blocks are not trapping these
exceptions.

Sysinternals' procexp places the two crash addresses in ntdll.dll, offsets
2a84 and 2b6a - both in RtlLogStackBack Trace.

A Dr Watson of a crash shows most of the threads are in the same code above
the ending address of the last dll.

My nubie questions:

Why don't the try-catch blocks catch these exceptions? The entire process is
wrappered by one.

Does anyone have any idea what is going on in ntdll!RtlLogSta ckBacktrace?
Any ideas why I would have crashes in there?

What are the threads executing? The last dll ends at 7c396000 and Dr Watson
shows almost every thread in code around 7ffe0304.

Does anyone have a suggestion on how to trap my faults, or at least narrow
down where I should be looking?
Nov 20 '05 #1
1 1769
Hi ,
You can try and use Application.Thr eadException to handle unhandled
exceptions. It is documented at
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemwind owsformsapplica tionclassthread exceptiontopic. asp

But since you are receving an Access Violation, handling this would not be
a good idea since this error occurs because memory has been overwritten,
which is not supposed to.

You can go to http://www.microsoft.com/whdc/ddk/de...nstallx86.mspx
to install the debugging tools for windows and then download it and install
it. It will install the tools at
c:\program files\debugging tools for windows\

Once it is done, start your application and then go to the command prompt
at the folder where the debugging tools are installed and then type

adplus -crash -pn "YourAppName.ex e"

When the crash occurs it will generate a folder such as "Crash_Mode ..." in
the C:\prgoram files\debugging tools for windows\.. This folder will be
atleast 30 to 100 MB. There will be a file with extension .dmp. You need to
load this .dmp file in windbg which is also installed with the debugging
tools. After you load this you will have to use several commands to get
information out of the dump. The help that comes with it is very good. It
has several commands. But the process of finding out the cause for the
problem is pretty tough and would require an expert in debugging to find
out whats going on. If this problem is very critical, then I would suggest
that you can create a support incident with Microsoft and the appropriate
team will engage their Escalation Engineers and might be possible to find
out the root cause for the problem.

Thanks

Anand Balasubramanian
Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks

Nov 20 '05 #2

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

Similar topics

2
492
by: Per Bergland | last post by:
I have a system service written in C#. For some reason it fails to start on our external web server (running a tightened Windows 2000). If I try to start the services after logging on, it works great. The Application event log says in a ".NET Runtime" entry: "The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display...
1
2259
by: tony | last post by:
hi. my NET application is using mixed c++ dll ( managed and unmanaged) in that dll , im calling api's of unamanged dll. my application crash with no exception or warning. its hard to find when the crash happen ,and where.
0
3227
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. Background: For typical script debugging issues, you can read and follow the two documents on...
1
1748
by: kmslick | last post by:
Hello all. Not sure which group this problem best relates to, so I'm posting to both with a follow up. I started learning C# and .NET last august for a project for my employer. The project involved extending explorer by creating a context-menu extension and allow certain actions to be performed on certain files. I was able to get that up and running through much searching on google, but the overall goal of the projects seems like it...
15
1576
by: Trapulo | last post by:
Very often my VS2005 pro crashes after a debug. I run ASP.NET debug, and all works well. Then I stop it, and all it's also ok. Then, when I try to edit some code, it crashes and I need to kill it, restart, reload project, etc. it seems that the problem is with vb compiler integration, but I'm not sure. Is this a known problem? Is there some solution? I cannot spend all my time to reload VS and projects!
34
4476
by: NewToCPP | last post by:
Hi, Why does a C/C++ programs crash? When there is access to a null pointer or some thing like that programs crash, but why do they crash? Thanks.
12
5599
by: benjamin.krulewitch | last post by:
I'm debugging an issue with a C program that causes the computer to crash, and I'm attempting to log information immediately before the crash occurs. I us my BKprintLog function (see below) to write information into a log file. The problem is, i'm not confident that information i write to the log gets saved onto the hard drive before the crash occurs. My understanding of hard drives and OS are that because hard drives are so slow,...
8
1790
by: Abubakar | last post by:
Hi, I want to know that when my application is running outside of the debugger (in debug or release build) can I set the application/project settings in a way that when it crashes it tells me which method of which class it was running while it crashed. And can it also give me the stack trace of when the crash happened? I'm asking this cuz I'm running the app in a machine in which I cant install the visual studio, but I do have the...
1
1568
by: Alex | last post by:
Hello everybody, I've been working for days on a "twilight zone" bug and I can't make any sense of it. This is in an application that was developped on XP and that was modified to handle Vista. Other than using the virtual store for some config information, it doesn't do anything fancy. The strange thing is that when the application is executed without an active internet connection, there is a crash in the application for some of our...
0
9632
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
9471
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
10302
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
10136
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10071
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
9925
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
5372
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
3631
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2867
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.