I keep getting the error below.
----------------
An unhandled exception of type 'System.NullReferenceException' occurred in
Unknown Module.
Additional information: Object reference not set to an instance of an object.
----------------
How do I load within the IDE debug symbols for the C# DLLs so that I can
trace this error? (SYSTEM.DLL, FORMS.DLL, ACCESSIBILITY.DLL, etc.)
--
Steve 8 1619
Steve,
You can't. The framework does not ship with debug versions of the
framework DLLs.
What is the stack trace? Are you sure it is not the result of your own
doing?
Can you provide an example which shows the error?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Steve Teeples" <St**********@discussions.microsoft.com> wrote in message
news:BA**********************************@microsof t.com... I keep getting the error below. ---------------- An unhandled exception of type 'System.NullReferenceException' occurred in Unknown Module.
Additional information: Object reference not set to an instance of an object. ---------------- How do I load within the IDE debug symbols for the C# DLLs so that I can trace this error? (SYSTEM.DLL, FORMS.DLL, ACCESSIBILITY.DLL, etc.) -- Steve
Can you tell me how to look at the stack trace? That may help me narrow down
the fault?
"Nicholas Paldino [.NET/C# MVP]" wrote: Steve,
You can't. The framework does not ship with debug versions of the framework DLLs.
What is the stack trace? Are you sure it is not the result of your own doing?
Can you provide an example which shows the error?
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Steve Teeples" <St**********@discussions.microsoft.com> wrote in message news:BA**********************************@microsof t.com...I keep getting the error below. ---------------- An unhandled exception of type 'System.NullReferenceException' occurred in Unknown Module.
Additional information: Object reference not set to an instance of an object. ---------------- How do I load within the IDE debug symbols for the C# DLLs so that I can trace this error? (SYSTEM.DLL, FORMS.DLL, ACCESSIBILITY.DLL, etc.) -- Steve
Steve,
Every exception has a StackTrace property, which exposes an object which
has all the information about the call stack. It should shed more light on
the situation.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Steve Teeples" <St**********@discussions.microsoft.com> wrote in message
news:6D**********************************@microsof t.com... Can you tell me how to look at the stack trace? That may help me narrow down the fault?
"Nicholas Paldino [.NET/C# MVP]" wrote:
Steve,
You can't. The framework does not ship with debug versions of the framework DLLs.
What is the stack trace? Are you sure it is not the result of your own doing?
Can you provide an example which shows the error?
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Steve Teeples" <St**********@discussions.microsoft.com> wrote in message news:BA**********************************@microsof t.com... >I keep getting the error below. > ---------------- > An unhandled exception of type 'System.NullReferenceException' occurred > in > Unknown Module. > > Additional information: Object reference not set to an instance of an > object. > ---------------- > How do I load within the IDE debug symbols for the C# DLLs so that I > can > trace this error? (SYSTEM.DLL, FORMS.DLL, ACCESSIBILITY.DLL, etc.) > -- > Steve
I offer this for any new programmers out there. Not sure if it applies
here but you must instantiate any objects that you create.
so
public HelperClass MyClass;
is not enough, you must also have
myclass=new HelperClass();
otherwise you will get a null object error
HTH for anyone out there
Tal McMahon
On the IDE I found the call stack. When in debug mode there is no output to
it, nor does right clicking within the call stack window pull up any menu.
Can you tell me how to activate it? The online help doesn't help.
"Nicholas Paldino [.NET/C# MVP]" wrote: Steve,
Every exception has a StackTrace property, which exposes an object which has all the information about the call stack. It should shed more light on the situation.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Steve Teeples" <St**********@discussions.microsoft.com> wrote in message news:6D**********************************@microsof t.com... Can you tell me how to look at the stack trace? That may help me narrow down the fault?
"Nicholas Paldino [.NET/C# MVP]" wrote:
Steve,
You can't. The framework does not ship with debug versions of the framework DLLs.
What is the stack trace? Are you sure it is not the result of your own doing?
Can you provide an example which shows the error?
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Steve Teeples" <St**********@discussions.microsoft.com> wrote in message news:BA**********************************@microsof t.com... >I keep getting the error below. > ---------------- > An unhandled exception of type 'System.NullReferenceException' occurred > in > Unknown Module. > > Additional information: Object reference not set to an instance of an > object. > ---------------- > How do I load within the IDE debug symbols for the C# DLLs so that I > can > trace this error? (SYSTEM.DLL, FORMS.DLL, ACCESSIBILITY.DLL, etc.) > -- > Steve
I found that the call stack only shows current information when you're at a
break point. The dialog box that appears when the error is generated doesn't
provide any details on where. You mentioned this "StackTrace" property.
When the exception occurs, where do I found this "StackTrace" to view it? Is
it a window within the IDE? The dialog box that appears with the exception
gives no data other than what I mentioned orginally.
"Nicholas Paldino [.NET/C# MVP]" wrote: Steve,
Every exception has a StackTrace property, which exposes an object which has all the information about the call stack. It should shed more light on the situation.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Steve Teeples" <St**********@discussions.microsoft.com> wrote in message news:6D**********************************@microsof t.com... Can you tell me how to look at the stack trace? That may help me narrow down the fault?
"Nicholas Paldino [.NET/C# MVP]" wrote:
Steve,
You can't. The framework does not ship with debug versions of the framework DLLs.
What is the stack trace? Are you sure it is not the result of your own doing?
Can you provide an example which shows the error?
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Steve Teeples" <St**********@discussions.microsoft.com> wrote in message news:BA**********************************@microsof t.com... >I keep getting the error below. > ---------------- > An unhandled exception of type 'System.NullReferenceException' occurred > in > Unknown Module. > > Additional information: Object reference not set to an instance of an > object. > ---------------- > How do I load within the IDE debug symbols for the C# DLLs so that I > can > trace this error? (SYSTEM.DLL, FORMS.DLL, ACCESSIBILITY.DLL, etc.) > -- > Steve
Steve,
If you are in debug mode, and there is no output, then it would be
coming from inside the framework (it would seem exclusively, and not as a
result of something you did).
Can you post a project sample that shows what you are doing which shows
the error?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Steve Teeples" <St**********@discussions.microsoft.com> wrote in message
news:4A**********************************@microsof t.com... On the IDE I found the call stack. When in debug mode there is no output to it, nor does right clicking within the call stack window pull up any menu. Can you tell me how to activate it? The online help doesn't help.
"Nicholas Paldino [.NET/C# MVP]" wrote:
Steve,
Every exception has a StackTrace property, which exposes an object which has all the information about the call stack. It should shed more light on the situation.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Steve Teeples" <St**********@discussions.microsoft.com> wrote in message news:6D**********************************@microsof t.com... > Can you tell me how to look at the stack trace? That may help me > narrow > down > the fault? > > "Nicholas Paldino [.NET/C# MVP]" wrote: > >> Steve, >> >> You can't. The framework does not ship with debug versions of the >> framework DLLs. >> >> What is the stack trace? Are you sure it is not the result of >> your >> own >> doing? >> >> Can you provide an example which shows the error? >> >> >> -- >> - Nicholas Paldino [.NET/C# MVP] >> - mv*@spam.guard.caspershouse.com >> >> "Steve Teeples" <St**********@discussions.microsoft.com> wrote in >> message >> news:BA**********************************@microsof t.com... >> >I keep getting the error below. >> > ---------------- >> > An unhandled exception of type 'System.NullReferenceException' >> > occurred >> > in >> > Unknown Module. >> > >> > Additional information: Object reference not set to an instance of >> > an >> > object. >> > ---------------- >> > How do I load within the IDE debug symbols for the C# DLLs so that I >> > can >> > trace this error? (SYSTEM.DLL, FORMS.DLL, ACCESSIBILITY.DLL, etc.) >> > -- >> > Steve >> >> >>
Steve,
When an exception is thrown, there is an instance of it you can access
in the catch block of the exception handler. You can access it through the
StackTrace property there.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Steve Teeples" <St**********@discussions.microsoft.com> wrote in message
news:A9**********************************@microsof t.com... I found that the call stack only shows current information when you're at a break point. The dialog box that appears when the error is generated doesn't provide any details on where. You mentioned this "StackTrace" property. When the exception occurs, where do I found this "StackTrace" to view it? Is it a window within the IDE? The dialog box that appears with the exception gives no data other than what I mentioned orginally.
"Nicholas Paldino [.NET/C# MVP]" wrote:
Steve,
Every exception has a StackTrace property, which exposes an object which has all the information about the call stack. It should shed more light on the situation.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Steve Teeples" <St**********@discussions.microsoft.com> wrote in message news:6D**********************************@microsof t.com... > Can you tell me how to look at the stack trace? That may help me > narrow > down > the fault? > > "Nicholas Paldino [.NET/C# MVP]" wrote: > >> Steve, >> >> You can't. The framework does not ship with debug versions of the >> framework DLLs. >> >> What is the stack trace? Are you sure it is not the result of >> your >> own >> doing? >> >> Can you provide an example which shows the error? >> >> >> -- >> - Nicholas Paldino [.NET/C# MVP] >> - mv*@spam.guard.caspershouse.com >> >> "Steve Teeples" <St**********@discussions.microsoft.com> wrote in >> message >> news:BA**********************************@microsof t.com... >> >I keep getting the error below. >> > ---------------- >> > An unhandled exception of type 'System.NullReferenceException' >> > occurred >> > in >> > Unknown Module. >> > >> > Additional information: Object reference not set to an instance of >> > an >> > object. >> > ---------------- >> > How do I load within the IDE debug symbols for the C# DLLs so that I >> > can >> > trace this error? (SYSTEM.DLL, FORMS.DLL, ACCESSIBILITY.DLL, etc.) >> > -- >> > Steve >> >> >> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Daniel Mori |
last post by:
Im at a loss on where to proceed next. I wonder if anyone can help
me.
I have a managed C++ DLL is basically a thin wrapper around several
unmanaged classes. This DLL builds fine.
In my...
|
by: Andrew Ducker |
last post by:
I'm trying to load an assembly into a temporary AppDomain rather than
my main AppDomain, so that it can be unloaded later on. However, it's
also loading into my main AppDomain at the same time.
...
|
by: murl |
last post by:
I'm making a project to read custom attributes from assemblies, and in
order to read them using the assembly.getCustomAttributes(type, false)
method, I have to add my custom attribute library to...
|
by: R Reyes |
last post by:
Can someone please explain to me why I can't get the MS Word Interop assembly
to work in my VS2005 project? I'm trying to manipulate MS Word from my Web
Form application and I can't get passed...
|
by: Ratul |
last post by:
Hi all!
I'm writing a winforms test harness which lets me specify a subfolder
from which to load a particular .net assembly dll. The idea is that
there will be multiple subfolders, each having...
|
by: Bardo |
last post by:
Hi all,
We are trying to debug an assembly which was built in debug configuration on
our build server. The output window of visual studio indicates that no
symbols are being loaded for the...
|
by: 2b|!2b==? |
last post by:
I am attempting to manually load debug symbols for a module. I am doing
it by carrying out the ff steps:
i). Select the call stack window
ii). right click and select 'Load Symbols' from...
|
by: GroupReader |
last post by:
I posted a similar question earlier and got lots of good feedback, but
now I have more information:
Problem: I have javascript in a user control that is not "loading"
properly. When I try to...
|
by: sandro |
last post by:
Hi,
I had two packages working fine toghether: debug and sqlkit. Debug
provides a metaclass just for debuggging purposes to sqlkit (to log
methods following a recipe on ASPN. It worked very...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: 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,...
|
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...
|
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...
|
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...
| |