471,317 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,317 software developers and data experts.

variable set, but debugger says undefined value.

Here's one that's got me stumped...

[code follows]
I have a class with a member variable. I set it in a member method. In the
debugger, it shows up as <undefined> before AND AFTER it is set. However,
after it is set, I set a property of the newly initialized member. Even
though the debugger says that the value is undefined, there is no run-time
error.

I call another class method and pass the member variable by 'ref'. The
debugger shows the property that was set [above] as set to the value I put in
it.

When I return from this method, the debugger still says that the member
variable is undefined.

Any idea what's going on here? I've inherited this code from another
developer and I've never seen behavior like this before.
class xClass
{
private SomeType m_ds ;
Jan 6 '06 #1
0 1083

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Xeon | last post: by
2 posts views Thread by Robert Skidmore | last post: by
10 posts views Thread by Sharon | last post: by
1 post views Thread by Rhino | last post: by
5 posts views Thread by Maxwell2006 | last post: by
148 posts views Thread by onkar | last post: by
reply views Thread by rosydwin | last post: by

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.