By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,567 Members | 1,713 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,567 IT Pros & Developers. It's quick & easy.

Loading debug information

P: n/a
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
Share this Question
Share on Google+
8 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.