From: SMTP%"shayes@plainfield.bypass.com" 28-OCT-1997 17:45:37.55 To: NT Developers , =?us-ascii?Q?=27Jose_Navas_Su=27?= CC: Subj: RE: [ntdev] Windows PostMessage Return-Path: owner-ntdev@atria.com Received: by arisia.gce.com (UCX V4.1-12C, OpenVMS V7.1 VAX); Tue, 28 Oct 1997 17:41:01 -0500 Received: from gw.atria.com (gw.atria.com [192.88.237.2]) by mercury.mv.net (8.8.8/mem-971025) with SMTP id FAA02527 for ; Tue, 28 Oct 1997 05:23:47 -0500 (EST) Received: by gw.atria.com id Tue, 28 Oct 1997 00:38:45 -0500 Received: from plainfield.bypass.com by gw.atria.com id Tue, 28 Oct 1997 00:38:42 -0500 Received: from shayes.bypass.com (port4.chester.smallmedia.com [207.1.33.104]) by plainfield.bypass.com (8.7.3/8.7.1) with SMTP id AAA16167; Tue, 28 Oct 1997 00:39:05 -0500 (EST) Received: by shayes.bypass.com with Microsoft Mail id <01BCE339.D2371EC0@shayes.bypass.com>; Tue, 28 Oct 1997 00:38:33 -0500 Message-ID: <01BCE339.D2371EC0@shayes.bypass.com> From: Sanford Hayes To: NT Developers , =?us-ascii?Q?=27Jose_Navas_Su=27?= Subject: RE: [ntdev] Windows PostMessage Date: Tue, 28 Oct 1997 00:38:16 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-ntdev@atria.com Precedence: bulk Have you tried using PostThreadMessage : ::PostThreadMessage(m_dwAntennaID,WM_USER_ANTENNA_GetInterfaceConfig,(WPARAM)0,(LPARAM)(UINT)m_hWnd); use the thread ID instead of a window handle and get message to receive the messages while(GetMessage(&AntennaManager_msg,NULL,NULL,NULL)) { /* Continue Loop Until WM_QUIT */ xxxxxxxxx } if you still do not get the messages bump the receiving thread priority up a bit. regards Sanford Hayes vWare Systems http://www.globalconnect.net/vware/ ---------- From: Jose Navas Su[SMTP:tecnomat@sol.racsa.co.cr] Sent: Monday, October 27, 1997 2:00 PM To: NT Developers Subject: [ntdev] Windows PostMessage Hi: I am writing a multithreaded server, where threads communicate to each others via windows messages using PostMessage API function. I?m using VC++ 5.0 on Windows NT 4.0 My problem is that some messages don?t arrive at their target, I am already verifying the return code of PostMessage, and there is no problem with this. I think that these messages are getting starved on the queues, but I have no way to proof this. May be that when the sending window is closed, these message are never delivered. Does this have some meaning to you? Thanks for any help Jose Navas Su Tecnomatica - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ]