DOCUMENT:Q171553 18-JUN-2001 [foxpro] TITLE :FIX: VFP May Crash While Running MS Web Browser Control PRODUCT :Microsoft FoxPro PROD/VER:WINDOWS:5.0,5.0a; WINNT:97,97sp1,97sp2 OPER/SYS: KEYWORDS:kbVS97sp2fix ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual FoxPro for Windows, versions 5.0, 5.0a ------------------------------------------------------------------------------- SYMPTOMS ======== Visual FoxPro v5.0x may crash while running an application that uses the Microsoft Web Browser Control. STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Visual Studio 97 Service Pack 3. For more information, please see the following article in the Microsoft Knowledge Base: Q170365 INFO: Visual Studio 97 Service Packs - What, Where, and Why MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- 1. Create a Form. 2. Add a Microsoft Web Browser Control to the form and set its properties as follows: Name: WBCtrl1 Refresh: NODEFAULT Init: This.Navigate("www.microsoft.com") 3. Add a TextBox to the Form. The TextBox will be used to enter the URLs you want to connect to. Add the following code to the Valid event of this TextBox: IF !EMPTY(This.Value) ThisForm.WBCtrl1.Navigate(This.Value) ENDIF 4. Run the form, type a valid URL into the TexBox, and then hit the ENTER key to go to and display the URL. Note that repeating step 4 several times may cause Visual FoxPro to crash. Additional query words: ====================================================================== Keywords : kbVS97sp2fix Technology : kbVFPsearch kbAudDeveloper kbVFP500 kbVFP500a Version : WINDOWS:5.0,5.0a; WINNT:97,97sp1,97sp2 Issue type : kbbug Solution Type : kbfix ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2001.