PRB: Query with DBEXEC() Causes GP Fault Under Windows NT

Last reviewed: January 26, 1996
Article ID: Q114202
The information in this article applies to:

- Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, and 2.6

SYMPTOMS

When you use the DBEXEC() function (in the FoxPro Connectivity Kit) to execute a query using one of the ODBC Desktop Database Drivers, a general protection (GP) fault occurs.

CAUSE

The files associated with the ODBC Desktop Database Drivers conflict with the FoxPro Connectivity Kit when FoxPro for Windows is running under Windows NT version 3.1.

RESOLUTION

A resolution has not yet been determined. To avoid this problem, do not use the ODBC Desktop Database Drivers with FoxPro for Windows when FoxPro is running under Windows NT version 3.1.

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The Microsoft ODBC Desktop Database Drivers use a common database engine that resides in a file called SIMBA.DLL. The ODBC Desktop Database Drivers that use SIMBA.DLL include drivers used to access the following file types: Microsoft Access, Microsoft FoxPro, dBASE III, dBASE IV, Paradox, Btrieve, and Microsoft Excel.

Since these drivers all use SIMBA.DLL, a GP fault may occur when these drivers are used with the Connectivity Kit when FoxPro for Windows is running under Windows NT 3.1.

Sample Code

   SET LIBRARY TO FPSQL ADDITIVE
   xhandle = dbconnect(<data source name>,'','')  &data source has already
                       * been set up using the ODBC icon in Control Panel.
   z=dbexec(xhandle,"Select * from CUSTOMER")
   BROWSE
   =dbdisconnect(xhandle)
   RELEASE LIBRARY FPSQL


Additional reference words: FoxWin gpf 2.50 2.50a 2.50b 2.60
KBCategory: kbprg kbprb
KBSubcategory: FxinteropDbase


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.

Last reviewed: January 26, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.