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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:50:04+00:00 2026-05-12T17:50:04+00:00

I got a crashdump where we’re debating whether a control was visible to the

  • 0

I got a crashdump where we’re debating whether a control was visible to the end user or not. Looking with !do I can’t see any explicit field that holds the true/false value matching up with the Visible property, which doesn’t surprise that much as we’re probably down in win32 teritory. Does anyone know how to deduce what Visible would have returned from the dump file?

thanks
Oskar

  • 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-12T17:50:05+00:00Added an answer on May 12, 2026 at 5:50 pm

    My initial thought was that this was just a question of looking up the right field, but actually it took a bit more digging. If you look at Control in Reflector, you’ll see that the Visible property calls GetVisibleCore, which checks an internal state field against the value 2 (which happens to be the constant STATE_VISIBLE).

    So in order to find out if a control is visible, we need to locate the state field and do some bit manipulation.

    If you have the address of the instance, you can do the following:

    .shell -ci "!do <ADDRESS>" grep state   (use findstr, if you don't have grep)
    

    The output is something similar to this

    0:000> .shell -ci "!do 015892a4" grep state
    03aeedcc  400112c       4c         System.Int32  1 instance 17432589 state  <=== HERE!
    03aeedcc  400112d       50         System.Int32  1 instance     2060 state2
    049ac32c  40011ef       d0 ...lized.BitVector32  1 instance 01589374 state
    03aeedcc  40011f0      ad4         System.Int32  1   static        1 stateScalingNeededOnLayout
    03aeedcc  40011f1      ad8         System.Int32  1   static        2 stateValidating
    03aeedcc  40011f2      adc         System.Int32  1   static        4     stateProcessingMnemonic
    03aeedcc  40011f3      ae0         System.Int32  1   static        8 stateScalingChild
    03aeedcc  40011f4      ae4         System.Int32  1   static       16 stateParentChanged
    

    Notice, that there are two state fields. I haven’t looked into why this is the case, but the one you want is the System.Int32. In my example it has a value of 17432589.

    The code in GetState is as follows

    return ((this.state & flag) != 0);
    

    so all you have to do from here is (17432589 & 2) != 0 and you’ll have the Visible state of the specific instance.

    Actually, you may have to go a step further. If the above returns false, you need to look up the parent and repeat the trick. For my simple example using a Form that was not necessary.

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

Sidebar

Ask A Question

Stats

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

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

    • 7 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer it's not pretty, but you can try this in your… May 13, 2026 at 5:59 am
  • Editorial Team
    Editorial Team added an answer Write code Read books, http://www.coderholic.com/free-python-programming-books/ Read code Read tutorials, http://www.dabeaz.com/talks.html,… May 13, 2026 at 5:59 am
  • Editorial Team
    Editorial Team added an answer They are mutual opposites. 'after' inserts the argument after the… May 13, 2026 at 5:59 am

Related Questions

I got a crashdump where we're debating whether a control was visible to the
I am using WinDbg to load a crash dump from managed code (C#, a
As part of getting our application ready for Windows7, we recently added a manifest
I got a webserver with a running application. There's a webpage with a form:
I got a little curious after reading this /. article over hijacking HTTPS cookies.

Trending Tags

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

Top Members

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.