PRB: Spy Repeatedly Lists a Single Message (74278)



The information in this article applies to:

  • Microsoft Windows Software Development Kit (SDK) 3.1
  • Microsoft Windows Software Development Kit (SDK) 3.0
  • Microsoft Win32 Software Development Kit (SDK) 3.5
  • Microsoft Win32 Software Development Kit (SDK) 3.51
  • Microsoft Win32 Software Development Kit (SDK) 4.0

This article was previously published under Q74278

SYMPTOMS

SPY sometimes reports messages as having been sent twice. Messages from DDE conversations, especially the WM_DDE_DATA, WM_DDE_ACK, and WM_DDE_POKE messages, are the most often duplicated. This behavior can be seen by choosing All Windows from Spy's Windows menu, selecting DDE messages in Spy's Options dialog, and then running two applications that communicate using DDE.

CAUSE

Spy displays a message each time it is retrieved. If an application retrieves a message once by calling PeekMessage() with PM_NOREMOVE, and then again with GetMessage(), Spy will report it twice. Spy cannot determine that the message was already retrieved by the application. Since the application is using the message twice, the message should indeed be shown twice. This is a useful feature for determining how an application is handling the DDE messages sent to it.

Modification Type:MinorLast Reviewed:2/14/2005
Keywords:kbprb KB74278