Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 913757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:36:38+00:00 2026-05-15T17:36:38+00:00

I have created this datastructure: class Event { public: Event(EVENT_TYPE type, void* pSender =

  • 0

I have created this datastructure:

class Event
{
public:
    Event(EVENT_TYPE type, void* pSender = 0, int content1 = 0,  
        int content2 = 0, int content3 = 0, int content4 = 0);
    ~Event(void);

// ... some functions

protected:
    EVENT_TYPE itsType;
    void* itsPointerToSender;
    int itsContent_1;
    int itsContent_2;
    int itsContent_3;
    int itsContent_4;
    int numStacked;
};

whose constructor is simply

Event::Event(EVENT_TYPE type, void* pSender, int content1, int content2, int content3, int content4)
    :   itsType(type),
    itsPointerToSender(pSender),
    itsContent_1(content1),
    itsContent_2(content2),
    itsContent_3(content3),
    itsContent_4(content4),
    numStacked(0)
{
}

For some strange reason I can’t understand, the VS debugger cannot and will not show me whatever is contained in itsContent_4. If I put a watch on the variable, itsContent_4 gives me a symbol "itsContent_4" not found while doing the same thing with itsContent_3 works perfectly. I’m not sure the variable even exists as far as the compiler is concerned!

Am I missing something here?

Edit: Now it seems (even stranger) that changing the order of the variables in the declaration creates an even bigger mess! I tried placing itsContent_4 before itsContent_1 and now itsContent_1 is being initialized with the value intended for itsContent_4! What is going on here? I’m suspecting something to do with naming, so I’ll try renaming them all and see what happens.

Edit 2: Yes, apparently changing the variable names to itsContent_a instead of itsContent_1 and so forth works perfectly. Is there some restriction as to using numbers in a variable name?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T17:36:39+00:00Added an answer on May 15, 2026 at 5:36 pm

    Sounds to me like the debugger is using the wrong .pdb file. Tools + Options, Debugging, General, ensure that “Require source files to exactly match the original version” is checked.

    While debugging with a breakpoint active, use Debug + Windows + Modules and right-click your executable in the list. Click “Symbol Load Information” to find out where the debugger found the .pdb file.

    Another possible mishap is that this class is defined in a separately compiled executable, like a DLL, which was compiled with incompatible settings. So that the layout of the object no longer matches. That’s not that likely in this case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 513k
  • Answers 513k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Just use implode function as: echo implode(',',$mob_numbers); explode is used… May 16, 2026 at 6:04 pm
  • Editorial Team
    Editorial Team added an answer Good that you found your bug. I would write your… May 16, 2026 at 6:04 pm
  • Editorial Team
    Editorial Team added an answer Sure, request.POST.items() and request.POST.iteritems() work just like the methods of… May 16, 2026 at 6:04 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a class (in C++), call it Data , that has thousands of
I have an custom class for an Core Data entity, called 'Friends'. As I
I have an object in my code of the type Object: Object o The
I'm writing a class in Java to represent a Graph data structure. This is
I have this data structure (basically): (setq ssm-list '(tasklist ((id . 10525295) (name .
I am not sure am I doing these correct. I have 3 models, Account,
This might be a silly question, but: Suppose an expression depends only on literals,
I have a special list (a sort of queue, as in the data structure,
Possible Duplicate: How do I start optimising my Java code? - CPU is at
I am having a couple of issues deciding how best to describe a certain

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.