Some questions about Message Queue
-
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 ?
-
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 ?
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.
-
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.
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:
-
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:
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