ADODB Command memory leak
- From: "khalprin" <khalprin@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 19 Aug 2005 13:16:02 -0700
Hello,
I'm tracking down a memory leak and have narrowed it down to the single line
of my code that calls the Execute() method of the ADODB Command object.
In this case, the Execute() is executing a query (that takes 2 parameters)
in MS Access that inserts 3 records into a table. I'm using the command
'adCmdStoredProc' with the flag 'adExecuteNoRecords'. The command executes
successfully and does not return a recordset pointer.
When I run this through 1000s of iterations for my test, memory usage grows
continuously. If I comment out the Execute() call, memory usage does not
grow.
The command is setup as follows:
pCmd->put_ActiveConnection(*pConn); // variant
pCmd->CommandText = szQuery; // name of query/stored proc
pCmd->CommandType = cmd; // ADODB command id
The actual line of code that executes the command is:
pCmd->Execute(NULL, NULL, cmd | ADODB::adExecuteNoRecords);
Any ideas?
.
- Follow-Ups:
- Re: ADODB Command memory leak
- From: Val Mazur \(MVP\)
- Re: ADODB Command memory leak
- Prev by Date: Selecting a data row (register ) with Listbox or Combo
- Next by Date: Suppressing TSQL print messages from SQL batches
- Previous by thread: Selecting a data row (register ) with Listbox or Combo
- Next by thread: Re: ADODB Command memory leak
- Index(es):
Relevant Pages
|
|