473,385 Members | 1,732 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,385 software developers and data experts.

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 RtlLogStackBackTrace.

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!RtlLogStackBacktrace?
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 1749
Hi ,
You can try and use Application.ThreadException to handle unhandled
exceptions. It is documented at
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemwindowsformsapplicationclassthreadexcep tiontopic.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.exe"

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
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...
1
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...
0
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...
1
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...
15
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,...
34
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
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...
8
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...
1
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....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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
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,...
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
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,...
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...

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.