CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2000
    Location
    canada
    Posts
    124

    PostThreadMessage

    Hi!

    On my application, a function is called by the PostThreadMessage. I want to step in (F11) but it doesn't work. Is there a way to do that?

    Isabelle


  2. #2
    Join Date
    Nov 2000
    Location
    Reston, Virginia, USA
    Posts
    466

    Well yes and no....

    Short answer.. No no way to step into a postmessage.. A postmessage as aposed to a sendmessage doesnt' wait around for the return value of the message.. it just sticks the message in a queue and let's you continue on your way..

    The long answer is, While you can't step into your code from a post message... you can do an extensive text search.. Find out where that Message being posted it being caught and processed.. set a break point there, thus effectively stepping into it that way..

    Hope this was helpful.. rate me..


  3. #3
    Join Date
    Nov 1999
    Location
    Dresden / Germoney
    Posts
    1,402

    Re: PostThreadMessage

    Hi!

    You can only try to locate the Message Pump of the receiving thread, and put a breakpint there.


    Peter


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