CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Threaded View

  1. #3
    Join Date
    Jun 2008
    Location
    greater Cincinnati
    Posts
    54

    Re: What are some ways to trace a pointer ?

    Wow! You actually took the time to look through the codebase......
    I was going to post the file locations within the repository, but I wasn't sure that anybody would bother to look.


    Quote Originally Posted by S_M_A View Post
    You can set a data breakpoint to find when a variable is changed.
    Yeah. I set breakpoints out the yinyang, and was still finding this problem difficult to understand.

    Quote Originally Posted by S_M_A View Post
    I did some browsing though and PNL_CLOSED isn't a bit, it's actually two bits.From interface_intern.h
    Code:
    #define PNL_CLOSEDX    2
    #define PNL_CLOSEDY    4
    #define PNL_CLOSED    6
    In interface_panel.c the X & Y bits are set individually at line 1045 & 1049 (just below the code you posted)
    Oh Okay... I think I get how it works now. The X and Y bits are being used to denote when a panel is closed. I was expecting that an operation
    like " block->panel->flag |= PNL_CLOSED " would probably be used.



    THANK YOU dude, I'm on my way to becoming a professional. Good day.






    ----------------------------------------
    EDIT:

    Oh yeah. You seem to have definitely solved my immediate problem (breathing a sigh of relief ). Thank you so much... But I was still wondering about the 2 questions in my original post; I - think - it might be very helpful to me in the future. Would you or anybody else have an answer?
    Last edited by kmkkra; April 2nd, 2012 at 08:25 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured