BUG: OLE Control Updated Event Fired in Endless LoopLast reviewed: April 2, 1996Article ID: Q149034 |
The information in this article applies to:
SYMPTOMSInterrupting normal execution in the Updated event of an OLE control can cause the Updated event to be fired repeatedly, in an endless loop. Displaying a modal form such as a dialog box causes this problem, as well as stepping through the code in debug mode. Execution does not happen in a normal fashion in both of these cases.
WORKAROUNDAlthough the code cannot be run in debug mode it does run correctly as a compiled executable provided no modal forms are shown in the Updated event. To show a modal form in response to an Updated event, you can enable a timer control in the Updated event and then have the Timer's Timer event show the form. For example:
Private Sub OLE1_Updated(Code As Integer) Timer1.Enabled = True End Sub Private Sub Timer1_Timer() Timer1.Enabled = False MyForm.Show vbModal End Sub STATUSMicrosoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps To Reproduce Issue
|
KBCategory: kbbuglist kbprg
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |