BUG: StillExecuting Property Returns Incorrect ValueLast reviewed: March 9, 1998Article ID: Q182152 |
The information in this article applies to:
SYMPTOMSWhen attempting to compare the StillExecuting property with True, the comparison may fail even though the Microsoft Internet Transfer control is still executing its last Execute Method. This may result in the error:
Run-time error 35764 Still executing last request. CAUSEWhen the Internet Transfer Control is executing, the StillExecuting property has the incorrect value of 1 instead of the correct value of -1.
RESOLUTIONCompare the StillExecuting property against a value other than False (0).
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONIn Visual Basic, True equates to -1 and False equates to 0. When the Internet Transfer Control is executing, comparing the StillExecuting property with True fails. An alternative is to compare StillExecuting to any value other than False (0). When the Internet Transfer Control is not executing, the StillExecuting property has the correct value of 0 (False).
Steps to Reproduce Behavior
Do While Inet1.StillExecutingNOTE: This comparison will succeed where StillExecuting is 1, -1, or any value other than 0 (False). If the value of StillExecuting is compared against an explicit value such as 1, and this code is run with future versions of the control where the bug is fixed, the comparison may fail.
REFERENCESVisual Basic 5.0 Help file topic: "Internet Transfer Control" Keywords : vb5all VBKBCtrl VBKBInet kberrmsg Technology : internet Version : WINDOWS:5.0 Platform : WINDOWS Issue type : kbbug |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |