FIX: GPF/UAE When Closing DDE Application from the Task List (94166)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
This article was previously published under Q94166 SYMPTOMS
A General Protection (GP) fault or an Unrecoverable Application Error (UAE)
occurs under the following conditions: - A Visual Basic application is actively communicating via a Dynamic
Data Exchange (DDE) link
- The Visual Basic application is acting as the destination (or client) in
the DDE conversation.
- You close the application by choosing End Task from the Windows task list
while the DDE link is still active.
WORKAROUND
To work around the problem, ensure that the DDE conversion terminates
before the Visual Basic application terminates by setting the LinkMode
property to zero in an event other than the Unload or QueryUnload events
for Form1. To do this, you need to enable a timer within the Form_Unload
(or Form_QueryUnload) event. Within the Timer event, set the LinkMode
property to zero to terminate the DDE conversation.
STATUS
Microsoft has confirmed this to be a problem in Microsoft Visual Basic
version 2.0 for Windows. This problem was corrected in Microsoft Visual
Basic version 3.0 for Windows.
Modification Type: | Minor | Last Reviewed: | 1/9/2003 |
---|
Keywords: | kbbug KB94166 |
---|
|