DOCUMENT:Q113510 27-JUL-2001 [odbc] TITLE :BUG: SQLFreeStmt After SQLExecute/SQLExecDirect May Cause GPF PRODUCT :Open Database Connectivity (ODBC) PROD/VER:WINDOWS:1.0 OPER/SYS: KEYWORDS:kbBug kbISS ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Open Database Connectivity, version 1.0 ------------------------------------------------------------------------------- BUG# ODBCDBASE: 2062 (1.01.1928) SYMPTOMS ======== On certain Btrieve Tables, the following sequence of operations (or equivalent) can generate a general protection fault (GP fault) in BTRV110.DLL: 1. Allocate a Env, Hdbc, and Stmt handle using SQLAllocEnv, SQLAllocConnect, and SQLAllocStmt respectively or an equivalent sequence of calls to prepare to execute a SQL statement. 2. Execute SQLExecDirect or SQLExecute to execute a selection query (select * from ). 3. A subsequent call to SQLFreeStmt with fOption = SQL_CLOSE. The exact message of the error generated is: caused a general protection fault in module BTRV110.DLL at 0011:0B7A. NOTE: The conditions under which this can happen are highly dependent on the combination of specific data in certain tables and the structure of the ddf files. WORKAROUND ========== Try copying the data out and moving into another table. Run your query against the new table. STATUS ====== Microsoft has confirmed this to be a problem in ODBC Btrieve Driver version 1.01.1928. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. Additional query words: 1.01.1928 DDD VB Access ODBC ====================================================================== Keywords : kbBug kbISS Technology : kbAudDeveloper kbODBCSearch kbODBC100 Version : WINDOWS:1.0 Issue type : kbbug ============================================================================= 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.