Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: SQLDISCONNECT() May Cause Exception Error in Visual FoxPro


View products that this article applies to.

This article was previously published under Q140613

↑ Back to the top


Symptoms

In Visual FoxPro 3.0, Using the SQLDISCONNECT() function sometimes causes Visual FoxPro to quit and display an "Exception error."

↑ Back to the top


Status

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual FoxPro 3.0b for Windows.

↑ Back to the top


More information

Steps to Reproduce Problem

To reproduce this problem, a valid ODBC Data Source setup must be available on the system.

  1. In the Command window, type the following code:
       ?SQLSTRINGCONNECT()
    						
  2. Click Cancel when the SQL Data Source dialog box appears or click OK if an 'Execution was canceled by user' dialog box appears.
  3. Type the following in the Command window:
       ?SQLCONNECT()
    						
  4. Select a valid DataSource. You should receive a 1 for a connection handle.
  5. Type the following in the Command window:
       ?SQLDISCONNECT(1).
    						
    Visual FoxPro quits with "Exception error" or "This program has performed an illegal operation and will be shut down."

↑ Back to the top


Keywords: KB140613, kbfix, kbbug

↑ Back to the top

Article Info
Article ID : 140613
Revision : 3
Created on : 10/15/2003
Published on : 10/15/2003
Exists online : False
Views : 522