"Access Violation" Error Message with Program that Uses the DdeAddData() Function

ID: Q239789


The information in this article applies to:
  • Microsoft Windows NT Workstation version 4.0
  • Microsoft Windows NT Server version 4.0
  • Microsoft Windows NT Server, Enterprise Edition version 4.0


SYMPTOMS

When you run a program that uses the DdeAddData() function on a computer running Windows NT 4.0, you may receive an "Access Violation" error message.


CAUSE

This behavior can occur if one of the first two parameters passed to the DdeAddData() function is invalid (for example, null). The program attempts to use the invalid handle value because it does not detect that the handle value returned by the DdeAddData() function is invalid.


RESOLUTION

To resolve this problem, obtain the latest service pack for Windows NT 4.0. For additional information, please see the following article in the Microsoft Knowledge Base:

Q152734 How to Obtain the Latest Windows NT 4.0 Service Pack


STATUS

Microsoft has confirmed this to be a problem in Windows NT 4.0. This problem was first corrected in Windows NT 4.0 Service Pack 6.


MORE INFORMATION

For additional information about the DdeAddData() function, please visit the following Microsoft Web site:

http://msdn.microsoft.com/library/psdk/winbase/ddemlib_959d.htm

Additional query words: Win32 code

Keywords : kbprg ntsp kbbug4.00 kbfix4.00 NT4SP6Fix
Version : winnt:4.0
Platform : winnt
Issue type : kbbug


Last Reviewed: November 11, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.