Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Some questions about Message Queue

Some questions about Message Queue

Scheduled Pinned Locked Moved C / C++ / MFC
questiondata-structures
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GameProfessor
    wrote on last edited by
    #1

    What is the size of windows message queue ? i.e how many messages can queue up before the next one being discarded? And how long can a message stay in the message queue waiting to be processed? I've been looking all over but haven't found an answer for this ?

    M 1 Reply Last reply
    0
    • G GameProfessor

      What is the size of windows message queue ? i.e how many messages can queue up before the next one being discarded? And how long can a message stay in the message queue waiting to be processed? I've been looking all over but haven't found an answer for this ?

      M Offline
      M Offline
      Matthew Faithfull
      wrote on last edited by
      #2

      On Windows 2000 message queues defaulted to about 5000 entries which will be there until they get processed, however long it takes. I would guess that the sizes have gone up in XP and Vista and the implementation may have changed. If these limits are causing you problems then may I venture to suggest that you may have deeper problems in your design ;)

      Nothing is exactly what it seems but everything with seems can be unpicked.

      G 1 Reply Last reply
      0
      • M Matthew Faithfull

        On Windows 2000 message queues defaulted to about 5000 entries which will be there until they get processed, however long it takes. I would guess that the sizes have gone up in XP and Vista and the implementation may have changed. If these limits are causing you problems then may I venture to suggest that you may have deeper problems in your design ;)

        Nothing is exactly what it seems but everything with seems can be unpicked.

        G Offline
        G Offline
        GameProfessor
        wrote on last edited by
        #3

        thanks a lot, i was wondering about this just for the sake of curiousity. it's really dangerous using a queue without knowing how much it can handle. it's wierd I couldn't found any information about this (which I thing is very important). now i'm so relieved :laugh: , nobody says a word about it because it's almost limitless :laugh:

        M 1 Reply Last reply
        0
        • G GameProfessor

          thanks a lot, i was wondering about this just for the sake of curiousity. it's really dangerous using a queue without knowing how much it can handle. it's wierd I couldn't found any information about this (which I thing is very important). now i'm so relieved :laugh: , nobody says a word about it because it's almost limitless :laugh:

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          GameProfessor wrote:

          it's really dangerous using a queue without knowing how much it can handle

          It's also dangerous to make assumptions about the size of the windows message queue. It's probably best to process the messages ASAP - for your sake and the user's sake :) Mark

          "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups