locked
Spy++ does not show my process (but the Window of the proc is shown) RRS feed

  • Question

  • Greeting!

    I have a problem with a hanging app, that I wanted to investigate with Spy++.

    Details on stackoverflow, or quoted below:

    Stage

    We have a MFC desktop application that is "hanging" in that it doesn't react to any user input anymore. It is redrawn when switching to it via alt-tab however. (It does receive WM_SETFOCUS, WM_ACTIVATE, etc. it does apparently not receive any mouse or keyboard messages.)

    Since the app is hanging in some limbo, we pulled a few process dumps, but these were of little help so far. Enter:

    Spy++

    We used Spy++ to find the information I gave above about the window messages this application seems to be processing. We did this by Opening the Windows View  and selecting our application Window and in the Messages properties selected Windows of same process and Messages to View : Select All.

    However we first tried to view all messages of this process by opening the Processes View  of Spy++ and our application is not shown in this process list. Cross checking on another PC where the app is running normally, the process is also normally shown in the processes list of Spy++.

    Can anything about the misbehaving app be inferred from the fact that the process is not shown in Sp++'s Process View, but the main Window of the app is shown in the Windows View. Why would a process with a main window that is visible not be shown in Spy++'s Processes View?

    Note that the process is listed in TaskManager and in the Attach Process Window of Visual Studio 2005. So these tools apparently use a different method to list processes than Spy++ ... ?


    The system where the app is currently hanging is a Windows XP sp2 system and we've used the Spy++ Utility that comes with Visual Studio 2005.

    The behavior does recur occasionally, but only after the App has been running for several days!

    • Moved by Helen Zhao Monday, November 21, 2011 4:47 AM (From:Visual C++ General)
    Friday, November 18, 2011 1:46 PM

All replies

  • Hi Martin,
     
    Welcome to the MSDN Forum.
     
    According to your description, I'd like to move your thread to "Off-Topic Posts" because we discuss general questions about Visual C++ in this forum.
     
    Thank you for your understanding.
    Best regards,

    Helen Zhao [MSFT]
    MSDN Community Support | Feedback to us
    Monday, November 21, 2011 4:46 AM
  • Hi Martin,
     
    Welcome to the MSDN Forum.
     
    According to your description, I'd like to move your thread to "Off-Topic Posts" because we discuss general questions about Visual C++ in this forum.
     

    I posted this in the "General C++" Forum, because I did not know a better forum here. Is there a better forum? Moving this to Off Topic is just cheap.

    After all, my question involves processing Windows window messages as analyzed by a Microsoft tool. There should be either a better forum or it should be on topic in some Visual C++/ Visual Studio forum!!?

    - cheers, Martin

    Monday, November 21, 2011 12:30 PM
  • Hi Martin,
     
    Welcome to the MSDN Forum.
     
    According to your description, I'd like to move your thread to "Off-Topic Posts" because we discuss general questions about Visual C++ in this forum.
     
    Also the forum description reads:

    Visual C++ General

    General questions about Visual C++ , including the development environment, libraries, setup, debugger, samples, and documentation.

    Not sure, but somehow I'd say Spy++ is part of the development environment and "kind of" a debugger. :-) :-P

     

    Monday, November 21, 2011 12:36 PM