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

Call Stack

My application abends when I press a tab on the tab control. I have tried
to trace what is happening, but is never shows me the line of code which is
failing, I only get a message box telling me I have a null pointer
exception.

I understand that I can use the "Call Trace Stack" tab in the debugger to
"trace" the sequence of events, but I am not able to follow how this will
lead me to the problem. My stack trace has the following entries...

System.Windows.Form.dll!Windows.Forms.Control::Set VisibilityCore(bool
value=true) + 0x207 bytes

System.Windows.Form.dll!Windows.Forms.Control::set _Visible(bool value=true)
+ 0x1e bytes

System.Windows.Form.dll!Windows.Forms.TabPage::set _Visible(bool value=true)
+ 0x1c

So how does this help me find the problem?

Your assistance is greatly appricated!!!!!!!
Nov 15 '05 #1
3 4388
So, you're following the app in the debugger line by line and this gets
thrown? What function does it get thrown on?
"Jim Heavey" <Ji*******@nospam.com> wrote in message
news:Xn*********************************@207.46.24 8.16...
My application abends when I press a tab on the tab control. I have tried
to trace what is happening, but is never shows me the line of code which is failing, I only get a message box telling me I have a null pointer
exception.

I understand that I can use the "Call Trace Stack" tab in the debugger to
"trace" the sequence of events, but I am not able to follow how this will
lead me to the problem. My stack trace has the following entries...

System.Windows.Form.dll!Windows.Forms.Control::Set VisibilityCore(bool
value=true) + 0x207 bytes

System.Windows.Form.dll!Windows.Forms.Control::set _Visible(bool value=true) + 0x1e bytes

System.Windows.Form.dll!Windows.Forms.TabPage::set _Visible(bool value=true) + 0x1c

So how does this help me find the problem?

Your assistance is greatly appricated!!!!!!!

Nov 15 '05 #2
In the IDE, click the "Debug" menu, click the "Exceptions" item, then click
on the either the "Common Runtime Exceptions" and then choose the "Break
into Debugger" option, or, expand the "Common Runtim Exception" and find
where the null pointer is ?System.NullPointerEcxception? and then choose
"Break Into Debugger" for that item. Run in Debug mode and when that
exception is encountered it'll break on the offending line.
Thanks,
Shawn

"Jim Heavey" <Ji*******@nospam.com> wrote in message
news:Xn*********************************@207.46.24 8.16...
My application abends when I press a tab on the tab control. I have tried
to trace what is happening, but is never shows me the line of code which is failing, I only get a message box telling me I have a null pointer
exception.

I understand that I can use the "Call Trace Stack" tab in the debugger to
"trace" the sequence of events, but I am not able to follow how this will
lead me to the problem. My stack trace has the following entries...

System.Windows.Form.dll!Windows.Forms.Control::Set VisibilityCore(bool
value=true) + 0x207 bytes

System.Windows.Form.dll!Windows.Forms.Control::set _Visible(bool value=true) + 0x1e bytes

System.Windows.Form.dll!Windows.Forms.TabPage::set _Visible(bool value=true) + 0x1c

So how does this help me find the problem?

Your assistance is greatly appricated!!!!!!!

Nov 15 '05 #3
I've always wondered why they're all set to 'continue' by default.... it's
not obvious that you need to turn them on, and debugging is rather difficult
if you can't trace exceptions.
"Shawn B." <le****@html.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
In the IDE, click the "Debug" menu, click the "Exceptions" item, then click on the either the "Common Runtime Exceptions" and then choose the "Break
into Debugger" option, or, expand the "Common Runtim Exception" and find
where the null pointer is ?System.NullPointerEcxception? and then choose
"Break Into Debugger" for that item. Run in Debug mode and when that
exception is encountered it'll break on the offending line.
Thanks,
Shawn

"Jim Heavey" <Ji*******@nospam.com> wrote in message
news:Xn*********************************@207.46.24 8.16...
My application abends when I press a tab on the tab control. I have tried to trace what is happening, but is never shows me the line of code which

is
failing, I only get a message box telling me I have a null pointer
exception.

I understand that I can use the "Call Trace Stack" tab in the debugger to "trace" the sequence of events, but I am not able to follow how this will lead me to the problem. My stack trace has the following entries...

System.Windows.Form.dll!Windows.Forms.Control::Set VisibilityCore(bool
value=true) + 0x207 bytes

System.Windows.Form.dll!Windows.Forms.Control::set _Visible(bool

value=true)
+ 0x1e bytes

System.Windows.Form.dll!Windows.Forms.TabPage::set _Visible(bool

value=true)
+ 0x1c

So how does this help me find the problem?

Your assistance is greatly appricated!!!!!!!


Nov 15 '05 #4

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

Similar topics

3
by: Vinodh Kumar P | last post by:
What is call stack? I am sorry if its perceived as an off topic.
5
by: Adrian | last post by:
Is there a way (understandably non-portable) to get the call stack from within a function? That is, assuming the application has been compiled with symbols, get the list of calling function names...
3
by: Cong Wang | last post by:
Hi,all! I found an interesting problem,it is that how to implement a C function which can be called once and return twice? Just like the POSIX function fork() or the library function...
1
by: Jason Coyne | last post by:
I am trying to use the StackTrace class to get my current stack trace for some logging. Everything is working fine, except when I am using threading (specifically WaitCallBack and...
11
by: Yahoo | last post by:
I have a programming issue where I need to know the whole history of the call stack to ensure it was never within a given method (specifically my own method). I am hooking into the XmlDocument...
3
by: Tommy Vercetti | last post by:
I have a complex threading deadlock scenario that I've been able to reproduce in the debugger. I hit break and look at the call stack which should tell me what I need. Except I only get the very...
5
by: Bob Day | last post by:
Using vs 2003, vb.net It is not clear from the documentation, but it appears that a raised event will traverse up the call stack upwards until it reaches its handler. Is this correct? See the...
24
by: John | last post by:
I know this is a very fundamental question. I am still quite confused if the program call stack stack should always grows upwards from the bottom, or the opposite, or doesn't matter?? That means...
0
by: Mike S | last post by:
I've seen examples of using the CallWindowProc Windows API function to call functions through their addresses in VB6 -- a clever workaround to emulate C-like function pointer semantics. A...
1
by: George2 | last post by:
Hello everyone, Such code segment is used to check whether function call or exception- handling mechanism runs out of memory first (written by Bjarne), void perverted() { try{
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...

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.