Microsoft KB Archive/139290

= PRB: 32-Bit Cursor Library Creates Temp Files in Current Dir =

Article ID: 139290

Article Last Modified on 3/11/2000

-

APPLIES TO


 * Microsoft Open Database Connectivity 2.5

-



This article was previously published under Q139290



SYMPTOMS
The 32-bit ODBC Cursor library (ODBCCR32.DLL) creates temporary files in the current directory from which the application is launched. The 32-bit cursor library creates temporary files of the form CTTXXX.TMP in the current directory of the application. As a result, applications using the cursor library may encounter errors when they switch the current directory in their application while cursors are still active.

For example, while closing the application you might see the error message:

[Microsoft ][ODBC Cursor library] Unable to close file buffer.

32-bit Microsoft Foundation Class (MFC) applications that use snapshots fall into the above class of applications.



WORKAROUND
 If feasible, close all open cursors and switch the current directory.  If you are using File Dialogs, monitor the current directory using the Win32 API call GetCurrentDirectory and reset the path using SetCurrentDirectory.

For example: main {   ..   GetCurrentDirectory(...); ...    /* open cursors  */ ...    /* open file dialog */ SetCurrentDirectory(..); /* close the cursors */ ..  }                        

Additional query words: 2.50.3006 odbc

Keywords: kbprb KB139290

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.