Thread: COM message pump

  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,318
    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, 11: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