COM message pump

This is a discussion on COM message pump within the Windows Programming forums, part of the Platform Specific Boards category; Hello everyone, Two questions about message pump in COM STA. 1. The term "message pump", means message queue? Pushing message ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    COM message pump

    Hello everyone,


    Two questions about message pump in COM STA.

    1. The term "message pump", means message queue? Pushing message into the message queue? Or retrieve message from the message queue?

    2. What is the impact if the message pump is not alive in STA? It will block method invocation from other apartment?


    thanks in advance,
    George

  2. #2
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,261
    Quote Originally Posted by George2 View Post
    Hello everyone,
    1. The term "message pump", means message queue? Pushing message into the message queue? Or retrieve message from the message queue?
    It means the usual GetMessage, TranslateMessage, DispatchMessage loop to take messages out of the queue.
    2. What is the impact if the message pump is not alive in STA? It will block method invocation from other apartment?
    Yeah I'm pretty sure that's right. It might not be the only impact though.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    1,579
    Thanks iMalc,


    Question answered.

    Quote Originally Posted by iMalc View Post
    It means the usual GetMessage, TranslateMessage, DispatchMessage loop to take messages out of the queue.
    Yeah I'm pretty sure that's right. It might not be the only impact though.

    regards,
    George

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Strange string behavior
    By jcafaro10 in forum C Programming
    Replies: 2
    Last Post: 04-07-2009, 07:38 PM
  2. message pump code for COM STA
    By George2 in forum Windows Programming
    Replies: 0
    Last Post: 04-10-2008, 08:19 PM
  3. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 10:03 PM
  4. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21