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

Loading debug information

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
Nov 16 '05 #1
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

Nov 16 '05 #2
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


Nov 16 '05 #3
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


Nov 16 '05 #4
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

Nov 16 '05 #5
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


Nov 16 '05 #6
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


Nov 16 '05 #7
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
>>
>>
>>


Nov 16 '05 #8
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
>>
>>
>>


Nov 16 '05 #9

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

Similar topics

4
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...
1
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. ...
0
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...
7
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...
0
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...
3
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...
7
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...
3
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...
3
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...
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: 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
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
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...
0
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...

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.