FIX: Error Message: Timeout While Waiting for DDE Response (95428)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
This article was previously published under Q95428 SYMPTOMS
You can get the error "Timeout while waiting for DDE response" if you
execute DDE commands within a DDE event. This occurs due to a limitation
of the Dynamic Data Exchange Management Library (DDEML.DLL) that provides
support for DDE under Windows. This problem may also occur if you place DDE
commands in an event that is triggered by a DDE command such as the Change
event of a text box.
CAUSE
The problem occurs because changing the text under the Destination Data
section of the DDE source causes a Text1_Change event. Since this is a DDE
related event, attempting to perform a DDE operation such as
text2.LinkRequest results in the timeout error message.
WORKAROUND
To work around the problem, perform all DDE operations in non-DDE
related events. If you need to perform a DDE operation in a DDE related
event, you can put the DDE operations in a timer event that will execute
after the DDE related event has finished. Here is an example:
- Follow steps 1 through 7 in the More Information section below.
- Place a timer control (Timer1) on Form1.
- Set the Interval property of Timer1 to 1.
- Set the Enabled property of Timer1 to False.
- In the Text1_Change event, enter the following code:
Sub Text1_Change ()
Timer1.Enabled = True
End Sub
- In the Timer1_Timer event, enter the following code:
Sub Timer1_Timer ()
text2.LinkRequest
Timer1.Enabled = False
End Sub
- Run the program.
- Change the text in the Destination Data section of the compiled DDE
sample application.
Text1 should correctly display the text typed into the Destination Data
section of the compiled DDE sample application without producing an error.
STATUS
Microsoft has confirmed this to be a problem in the Standard and
Professional editions of Microsoft Visual Basic version 2.0 for Windows.
This problem was corrected in Microsoft Visual Basic version 3.0 for
Windows.
Modification Type: | Major | Last Reviewed: | 10/28/2003 |
---|
Keywords: | kbbug kbfix KB95428 |
---|
|