The information in this article applies to:
SYMPTOMSThe following error may occur when calling Open() for a CDatabase or CRecordset object:
-or-
-or-
CAUSE
By default the MFC ODBC CDatabase class loads the ODBC cursor library (16
bit: ODBCCURS.DLL, 32 bit: ODBCCR32.dll). This allows an application to
define snapshot recordsets (the default) and scroll backward as well as
forward through the recordset. This cursor library caches the records of a
snapshot. To perform the caching, the 16-bit cursor library creates a
temporary file in the directory specified by the TEMP environment variable
or, if the TEMP variable is not defined, in the current directory. The
32-bit cursor library creates a temporary file in the current directory. A
temporary file is created for each CRecordset object created. If the
temporary file cannot be created, the error shown above occurs. This error
most likely occurs for one of the following reasons:
RESOLUTION
To avoid the error, increase the number of available file handles for the
application. This can be done by calling the Windows API function
SetHandleCount(). Also, increase the number specified by the "FILES=" line
in the CONFIG.SYS file.
Additional query words: kbODBC MfcDatabase kbMFC kbVC150 kbVC151 kbVC152 kbVC200 kbVC210 kbVC400 kbVC410 kbVC420 kbVC500 kbVC600
Keywords : |
Last Reviewed: July 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |