Hi,
My requirement is to create a custom message queue for a background thread. Here is some brief history on why I need this.
Class A creates back ground thread and post a one specific message to background thread. On receipt of the message, Background thread responses by posting another specific message back to main thread.
But the issue here is, The background thread also receives some system messages and its message queue is filled with system messages (10k messages which is the max limit for a thread) in one scenario and the background thread is unable to accept the message posted from main thread and this is leading to Application Hang.
The idea here is to create custom message queue for background thread and accept only interested messages.
Any help would would be appreciated.
Thanks,
Paul