ACC1x: GP Fault with PostMessage() to an ADK ApplicationID: Q105520
|
If you attempt to close a Microsoft Access Distribution Kit application by
sending a WM_CLOSE message from another application using the PostMessage()
Windows API function call, a general protection (GP) fault will occur.
The sample code
x = PostMessage(hWnd, WM_CLOSE, 0, 0)
Use the WM_DESTROY window message instead of the WM_CLOSE message to close
a run-time application. The following sample code demonstrates how to use
the WM_DESTROY message:
x = PostMessage(hWnd, WM_DESTROY, 0, 0)
Microsoft has confirmed this to be a problem in the Microsoft Access Distribution Kit version 1.1. This problem no longer occurs in the Microsoft Access Developer's Toolkit version 2.0.
Microsoft Windows version 3.1 "Programmer's Reference," Volume 2
Additional query words: GPF ADK
Keywords : kberrmsg kbprg
Version : 1.1
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: March 26, 1999