OCIServerAttach causing heap error
From: hhac <hhac_at_my-deja.com>
Date: Wed, 20 Oct 1999 14:53:47 GMT
Message-ID: <7ukl1l$8ob$1_at_nnrp1.deja.com>
I am using OCI 8 with Microsoft Visual Studio (ATL 3.0) and I have found that if I use OciServerAttach, when my program exits, the debugger shows the following error message:
Date: Wed, 20 Oct 1999 14:53:47 GMT
Message-ID: <7ukl1l$8ob$1_at_nnrp1.deja.com>
I am using OCI 8 with Microsoft Visual Studio (ATL 3.0) and I have found that if I use OciServerAttach, when my program exits, the debugger shows the following error message:
HEAP[builder.exe]: dedicated (0001) free list empty but marked as nonempty
Here is my code:
OCIInitialize((ub4) OCI_THREADED, (dvoid *)0, (dvoid * (*)(dvoid *, size_t)) 0, (dvoid * (*)(dvoid *, dvoid *, size_t))0, (void (*)(dvoid *, dvoid *)) 0 ); /* Initialize shared OCI handles */ status = OCIEnvInit( &m_envhp, (ub4) OCI_DEFAULT, 0,
(dvoid **) 0 );
status = OCIHandleAlloc( (dvoid *) m_envhp,
(dvoid **) &m_errhp,
(ub4) OCI_HTYPE_ERROR,
0, (dvoid **) 0); status = OCIHandleAlloc( (dvoid *) m_envhp,
(dvoid **) &m_srvhp,
(ub4) OCI_HTYPE_SERVER,
0, (dvoid **) 0); status = OCIHandleAlloc( (dvoid *) m_envhp,
(dvoid **) &m_svchp,
(ub4) OCI_HTYPE_SVCCTX,
0, (dvoid **) 0); status = OCIServerAttach(m_srvhp, m_errhp, service, strlen((char *)service), 0); OCIServerDetach( m_srvhp, m_errhp, (ub4) OCI_DEFAULT ); status = checkerr(m_errhp, OCIHandleFree((dvoid *) m_srvhp,
(ub4) OCI_HTYPE_SERVER));
status = checkerr(m_errhp, OCIHandleFree((dvoid *) m_svchp,
(ub4) OCI_HTYPE_SVCCTX));
status = checkerr(m_errhp, OCIHandleFree((dvoid *) m_errhp,
(ub4) OCI_HTYPE_ERROR));
status = OCIHandleFree((dvoid *) m_envhp,
(ub4) OCI_HTYPE_ENV);
Have I done something wrong in the code or has anyone else encountered a similar problem? What can I do to fix this error?
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Wed Oct 20 1999 - 16:53:47 CEST
