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 8499217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:36:27+00:00 2026-06-11T00:36:27+00:00

In Visual C++ 2010, consider the following: #include stdafx.h int _tmain(int argc, _TCHAR* argv[])

  • 0

In Visual C++ 2010, consider the following:

#include "stdafx.h"

int _tmain(int argc, _TCHAR* argv[])
{
  struct MyClass
  {
    MyClass() : mMember(0)
    {}

  void Func()
  {
    int tmp = 0;
    tmp++;
  }

  private:
    int mMember;
  };

  MyClass inst;
  inst.Func();

    return 0;
}

Step inside Func() and go to Watches pane and watch member variable mMember. Instead of seeing its value, you’ll see the error

CXX0033: Error: error in OMF type information

Is it possible to get the debugger to display the member’s value? If so, How?
I am aware this might be a bug, I have already reported it on Microsoft Connect, I am now looking for a workaround (that does not involve moving the definition outside function scope), and an explanation as to why this is occurring.
The bug report I submitted can be found here:
https://connect.microsoft.com/VisualStudio/feedback/details/760149/visual-c-2010-cant-view-local-class-members-in-debugger-cxx0033-error-error-in-omf-type-information

Edit: I am fully aware classes defined outside function scope work properly.

Edit2: A reference to an already submitted and acknowledged bug to Microsoft with this issue would go a long way towards becoming an accepted answer. I have searched for one already and found none.

  • 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-06-11T00:36:29+00:00Added an answer on June 11, 2026 at 12:36 am

    It’s a bug, VS2008 has it too, but it was fixed in VS2012 so they’ll surely quickly close your feedback article.

    A workaround is going to be difficult, the debugger doesn’t have type info for this. Which also makes it give up the ghost on the watch expression. Technically you can use Debug + Windows + Memory + Memory1 and type “this” in the Address expression. The “somevarname” is the first member and the struct doesn’t have a v-table so you’ll have no trouble finding the value. Clearly this doesn’t scale very well.

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

Sidebar

Related Questions

Consider the following code (written with Visual Studio 2010 and .NET 4.0) using System;
Consider the following case: void Set(const std::function<void(int)> &fn); void Set(const std::function<void(int, int)> &fn); Now
#include <cv.h> #include <highgui.h> int main(int argc,char** argv[]) { cvNamedWindow(video,CV_WINDOW_AUTOSIZE); CvCapture* capture = cvCreateFileCapture(Input_1.avi);
Consider the following code: #include<iostream> using namespace std; class sample { int a; int
Consider the following program: #include <cstddef> #include <cstdio> void f(char const*&&) { std::puts(char const*&&);
Consider a fresh install of Visual Studio 2010 Beta 2. In this case, the
Consider a snippet of CSS code from a .css file in Visual Studio 2010
Consider a Visual Studio 2010 project whose requirement is to model the data using
Consider the feature in Visual Studio 2010 for snippets in the HTML Source view
Consider the following class, with the inner struct Y being used as a type,

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.