ADODB Command memory leak



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?

.



Relevant Pages

  • [Full-Disclosure] Advanced usage of system() function.
    ... and call its arguments as a command for shell. ... as we can see we still didnt get what we want (typing exit ... Connection closed by foreign host. ... think what we want to execute. ...
    (Full-Disclosure)
  • Advanced usage of system() function.
    ... and call its arguments as a command for shell. ... as we can see we still didnt get what we want (typing exit we are ... Connection closed by foreign host. ... think what we want to execute. ...
    (Bugtraq)
  • Re: Wait for background processes to complete
    ... To be able to execute commands in the background and wait for their ... The documentation I am referring to is http://perldoc.perl.org/. ... You can run a command in the background with: ... There is a general problem with perl documentation: ...
    (comp.lang.perl.misc)
  • Execute Process Task not failing, but not executing the batch comm
    ... I can execute the following command from the windows "Run" prompt and it ... Might I have something set weird in SQL Server? ... server being by default configured to run as localsystem account, ...
    (microsoft.public.sqlserver.dts)
  • Re: IIS 6.0 on Windows Server 2003
    ... If PHP insists on using CMD.EXE to execute the shellcommand on the ... server, then no, you have no choice -- you must give read permissions to the ... this would be a security vulnerability caused by PHP. ...
    (microsoft.public.inetserver.misc)