Re: a *working* PostThreadMessage() implementation...?
- From: ".rhavin grobert" <clqrq@xxxxxxxx>
- Date: Thu, 2 Oct 2008 05:26:38 -0700 (PDT)
On 2 Okt., 00:02, "Doug Harrison [MVP]" <d...@xxxxxxxx> wrote:
I meant it would be better than trying to roll one's own message queue to
work around the PostThreadMessage issues. In order for PTM to work right,
all message loops have to account for it, which could be a problem down the
road if you add a secondary message loop for some reason.
?
there are only two acceptable scenarios:
1: Message IS delivered to the treads message queue and WILL appear in
the threads own message loop
2: Message cant be delivered and the posting-Fn return an error.
I post a mesage to a thread and expect the thread to receive it. thats
it. If the thread doesnt process it right now because it displayes a
message box, draws a button, hacks the White House or has fun leaking
memory, i expect the message to stay in the queue. if ANOTHER thread
is currently doing $whatever i expect the message queue of my thread
undisturbed. As PostThreadMessage() doesnt fulfill those simple
expectations, i assume it poorly implemented and do it myself.
.
- Follow-Ups:
- Re: a *working* PostThreadMessage() implementation...?
- From: Joseph M . Newcomer
- Re: a *working* PostThreadMessage() implementation...?
- From: Doug Harrison [MVP]
- Re: a *working* PostThreadMessage() implementation...?
- From: Alexander Grigoriev
- Re: a *working* PostThreadMessage() implementation...?
- References:
- a *working* PostThreadMessage() implementation...?
- From: .rhavin grobert
- Re: a *working* PostThreadMessage() implementation...?
- From: Doug Harrison [MVP]
- Re: a *working* PostThreadMessage() implementation...?
- From: Ajay Kalra
- Re: a *working* PostThreadMessage() implementation...?
- From: Doug Harrison [MVP]
- a *working* PostThreadMessage() implementation...?
- Prev by Date: Re: How to find & detect if application( in my case MS Excel ) IS ACTI
- Next by Date: Re: How to create vista glass buttons ?
- Previous by thread: Re: a *working* PostThreadMessage() implementation...?
- Next by thread: Re: a *working* PostThreadMessage() implementation...?
- Index(es):