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

unhandled exception

i am using VS.NET 2003 and coding in VB.NET.

some of my users recieving an unhandled exception in one of my programs.
although these exceptions always occur during a certain process, they are
totally random as to if and when they occur. if have not been able to
reproduce these errors on my machine nor can anyone else here in the IT dept.

i have try catch blocks around every event, sub, and function involved in
the process (even in the finally statements). i was hoping someone else had
an idea.

here is a screen shot...
<img src="http://img.photobucket.com/albums/v314/SilverSurfer77/ex.jpg"
alt="Image hosted by Photobucket.com">

or just click here:
http://img.photobucket.com/albums/v3...urfer77/ex.jpg
Jul 21 '05 #1
3 1644
Your screen shot does not show the complete stack trace. What call in your code is causing the exception-throwing method to be
invoked? I would start there first.

--
Dave Sexton
dave@www..jwaonline..com
-----------------------------------------------------------------------
"Kunkel" <da*******@hotmail.com> wrote in message news:97**********************************@microsof t.com...
i am using VS.NET 2003 and coding in VB.NET.

some of my users recieving an unhandled exception in one of my programs.
although these exceptions always occur during a certain process, they are
totally random as to if and when they occur. if have not been able to
reproduce these errors on my machine nor can anyone else here in the IT dept.

i have try catch blocks around every event, sub, and function involved in
the process (even in the finally statements). i was hoping someone else had
an idea.

here is a screen shot...
<img src="http://img.photobucket.com/albums/v314/SilverSurfer77/ex.jpg"
alt="Image hosted by Photobucket.com">

or just click here:
http://img.photobucket.com/albums/v3...urfer77/ex.jpg

Jul 21 '05 #2
unfortunately i do not know what is causing the exception. what puzzles me
further is that everything is nestled inside of a try/catch, so how could
this exception not be handled?

is there a reference that i can use to help me decifer what the stack trace
is indicating?

Thanks for the reply!

"Dave" wrote:
Your screen shot does not show the complete stack trace. What call in your code is causing the exception-throwing method to be
invoked? I would start there first.

--
Dave Sexton
dave@www..jwaonline..com
-----------------------------------------------------------------------
"Kunkel" <da*******@hotmail.com> wrote in message news:97**********************************@microsof t.com...
i am using VS.NET 2003 and coding in VB.NET.

some of my users recieving an unhandled exception in one of my programs.
although these exceptions always occur during a certain process, they are
totally random as to if and when they occur. if have not been able to
reproduce these errors on my machine nor can anyone else here in the IT dept.

i have try catch blocks around every event, sub, and function involved in
the process (even in the finally statements). i was hoping someone else had
an idea.

here is a screen shot...
<img src="http://img.photobucket.com/albums/v314/SilverSurfer77/ex.jpg"
alt="Image hosted by Photobucket.com">

or just click here:
http://img.photobucket.com/albums/v3...urfer77/ex.jpg


Jul 21 '05 #3
I understand that you don't know what is causing the exception to be thrown.

What I am suggesting is that you should look at the stack trace to find the last method of yours that is invoking the framework
calls, which eventually lead to an exception. The image you provided a link to does not display any of your methods in the call
stack because you did not scroll down far enough before taking the screen shot.

Find the method, set a break point and attach a debugger. When your break point is hit check your variables before the first
framework method in the call stack is invoked. If I am correct, you should find that your code attempts to pass a null object
reference to a framework method, hence the NullReferenceException being thrown. If it is more complicated than that, you'll need to
check the state of your application's variables and your code's relationship to the framework calls being made.

GL

--
Dave Sexton
dave@www..jwaonline..com
-----------------------------------------------------------------------
"Kunkel" <da*******@hotmail.com> wrote in message news:7F**********************************@microsof t.com...
unfortunately i do not know what is causing the exception. what puzzles me
further is that everything is nestled inside of a try/catch, so how could
this exception not be handled?

is there a reference that i can use to help me decifer what the stack trace
is indicating?

Thanks for the reply!

"Dave" wrote:
Your screen shot does not show the complete stack trace. What call in your code is causing the exception-throwing method to be
invoked? I would start there first.

--
Dave Sexton
dave@www..jwaonline..com
-----------------------------------------------------------------------
"Kunkel" <da*******@hotmail.com> wrote in message news:97**********************************@microsof t.com...
>i am using VS.NET 2003 and coding in VB.NET.
>
> some of my users recieving an unhandled exception in one of my programs.
> although these exceptions always occur during a certain process, they are
> totally random as to if and when they occur. if have not been able to
> reproduce these errors on my machine nor can anyone else here in the IT dept.
>
> i have try catch blocks around every event, sub, and function involved in
> the process (even in the finally statements). i was hoping someone else had
> an idea.
>
> here is a screen shot...
> <img src="http://img.photobucket.com/albums/v314/SilverSurfer77/ex.jpg"
> alt="Image hosted by Photobucket.com">
>
> or just click here:
> http://img.photobucket.com/albums/v3...urfer77/ex.jpg


Jul 21 '05 #4

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

Similar topics

7
by: Chuck Hartman | last post by:
I have a Windows service that requests web pages from a site using an HttpWebRequest object. When I try to request a page from an ASP.NET 2 site, I get a WebException with message "The remote...
5
by: Dave Stewart | last post by:
I recently wrote my first Vb.net application, or at least my first complex app since moving up from vb6. When run from the VS.NET IDE, the program shows no errors and runs fine. When the output exe...
5
by: Lucvdv | last post by:
Can someone explain why this code pops up a messagebox saying the ThreadAbortException wasn't handled? The first exception is reported only in the debug pane, as expected. The second (caused by...
5
by: Samuel R. Neff | last post by:
When you have an unhandled exception in vb.net how do you view the exception information in the debugger? In C# the debugger creates a local variable that points to the exception and you can...
0
by: Colmeister | last post by:
I recently read Jason Clark's excellent article on Unhandled Exceptions (http://msdn.microsoft.com/msdnmag/issues/04/06/NET/default.aspx) and have attempted to incorporate the features he talks...
5
by: Simon Tamman {Uchiha Jax} | last post by:
Now this is bugging me. I just released software for a client and they have reported an unhandled stack overflow exception. My first concern is that the entirity of the UI and any threaded...
0
by: Bob | last post by:
If I induce and unhandled exception in my vb.net code for instance using '-- just a simple "object not initialized" exception (should read "as new") Dim x As Specialized.NameValueCollection ...
1
by: Bob | last post by:
In Vs 2005 you have new applicationsEvents.vb I was testing it in a simple app and found that it was easier to implement unhandled exception management tah it was in Vs2003 (vb.net) You can, if you...
4
by: bg_ie | last post by:
Hi, I have the following Program.cs - namespace TestFrameworkApplication { static class Program { /// <summary> /// The main entry point for the application.
5
by: =?Utf-8?B?c3VydHVyeg==?= | last post by:
Hi, I feel like a noob for asking this. When I publish a VB windows application, I want to disable the ability of the the user to continue when there is an unhandled exception. For example,...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.