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

  • SEARCH
  • Home
  • 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 5956427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:15:19+00:00 2026-05-22T18:15:19+00:00

I am debugging GUI app on windows and I want to find out who

  • 0

I am debugging GUI app on windows and I want to find out who is the sender of some message. On linux, I can run app in synchronized mode and find the sender in call stack. Is there any equivalent mode in windows?

  • 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-22T18:15:20+00:00Added an answer on May 22, 2026 at 6:15 pm

    AFAIK there’s no built-in ability to do this.

    But let’s first investigate the problem. You want to know who’s the sender of the message. You should know however that windows message processing can be classified by the following criterias:

    1. Posted vs Sent messages (PostMessage vs SendMessage).
    2. Messages sent to the window belonging to another thread vs sender thread.
    3. Messages posted to a thread (not bound to a specific window, hence not processed by the window procedure).

    You may trace directly the sender only when the message is sent (not posted) to a window, whereas the call to the SendMessage (or similar) was issued in the thread to which the window belongs. In such you will see the sender in the call stack.

    In case the message was sent from another thread – you will not see it in the call stack. Simply because the call stack shows the call chain that belongs to the current thread only. When a message is sent from another thread the system performs the following:

    1. Suspends the caller thread.
    2. Puts this message to the queue of the thread that owns the window.
    3. When that thread calls GetMessage (or similar) – the message is dispatched to the window.
    4. Finally the OS resumes the caller thread. The SendMessage returns with the result that was returned by the window procedure.

    In such a case you may try to identify the caller indirectly. Interrupt your program with the breakpoint, and try to search for suspended threads, which are blocked in a call to SendMessage or similar.

    Finally, messages that are posted are impossible to trace by the above method. You may try to put a conditional breakpoint on a call to PostMessage, but if the caller belongs to another problem – this will be more complex.

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

Sidebar

Related Questions

Hi I want to print some messages when I'm running C# GUI app on
Hi I want to print some messages when I'm running C# GUI app on
Debugging experience http://www.dmhermitage.org/wtfborders.png This is making me want to kill myself. I have some
i want to do test and build simple debugger GUI in c++ that debugging
Debugging a PHP program, is there any add-on/plug-in for browser which I can view
While debugging a .NET Framework 3.5, WinForms application I spotted some Worker Threads without
When debugging I get an warning message on exception saying 'variable info not available
I'm using Visual Studio 2010 to write a simple C#/.NET GUI app, wherein I
I'm programming a GUI in my app and I noticed that button presses weren't
do you have any tips for some GUI applications (free) that are capable of

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.