ADO With Win2000 causes Heap corruption?

ADO With Win2000 causes Heap corruption?

Post by Itamar Habe » Mon, 25 Sep 2000 04:00:00

I'm experiencing difficulties using ADO with VC++ Under WIN2000. A simple
code fragment such as this:

  ADODB::_ConnectionPtr spCnn;

  spCnn.CreateInstance( __uuidof( ADODB::Connection ) );

  spCnn->Open("Provider=OraOLEDB.Oracle;Password=ami;User ID=ami;Data
Source=amidev;", "", "", ADODB::adConnectUnspecified);


causes the program to break unexpectedly while trying to exit at address
77F9F9DF of NTDLL. I've downloaded MDAC 2.5 SP1 and tried to upgrade but the
package fails and claims I already have MDAC 2.5


1. Connection::Close causes heap corruption?

After my program calls Close() on an ADO connection
and waits 60 seconds (e.g., call Sleep(60000)),
the debugger pops up (it's a debug build) with
an exception (user breakpoint called from
code at 0x77f9f9df).

The following message was written to the
output trace window:

Invalid Address specified to RtlFreeHeap( 130000, 164740 )

This seems to happen when ADO removes the
connection from the connection pool.  Immediately
after the exception, if I run "sp_who", the connection is
gone.  The exception occurs 60 seconds after calling
Close(), and 60 seconds is the connection pool's timeout

My program doesn't have any threads executing while
the Sleep is in progress.  I also tried putting a
breakpoint in the code and then suspending the thread
as an alternative to using Sleep.  Same result.

Has anyone seen this before?  I'm running Windows



2. Complex modelling issues...

3. Fix for regression caused by heap tuple header changes

4. web task - replace HTML page

5. Help: DAO in DLL (static link to MFC) causes Heap assert

6. What is Max Paradox Table Size?

7. dbsnmp with huge heap causes low swap space

8. Oracle on Win2000 Server causes frequent reboots

9. Ingres II ODBC - WIN2000 connectivity error (root cause)

10. IDENTITY: Possible cause of corruption?

11. Service pack causes corruption?