Board index » cppbuilder » Message queue size
Tumurbaatar S.
CBuilder Developer |
Tumurbaatar S.
CBuilder Developer |
Message queue size2006-11-21 03:48:11 AM cppbuilder72 In my multi-threaded app, I use below code to create a message queue for a thread: PeekMessage(&msg, NULL, WM_USER, WM_USER, PM_NOREMOVE); Other threads sends message to this thread: PostThreadMessage(...); And my question: What is size of a message queue? Is there a chance to lost messages due to the queue's overflow? |
Remy Lebeau (TeamB)
CBuilder Developer |
2006-11-21 04:01:22 AM
Re:Message queue size
"Tumurbaatar S." < XXXX@XXXXX.COM >wrote in message
QuoteWhat is size of a message queue? QuoteIs there a chance to lost messages due to the queue's overflow? Gambit |
Tumurbaatar S.
CBuilder Developer |
2006-11-21 07:59:45 AM
Re:Message queue size
Thank you!
10 thousands are too big to be overflowed. So, is there any other reason that Post...Message() returns FALSE? Of course, the destination window or thread is ok, i.e. handle is valid. "Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >wrote in message Quote
{smallsort} |
Remy Lebeau (TeamB)
CBuilder Developer |
2006-11-21 08:24:03 AM
Re:Message queue size
"Tumurbaatar S." < XXXX@XXXXX.COM >wrote in message
Quote10 thousands are too big to be overflowed. So, is there any other Gambit |