[AccessD] Memory leak

Michael R Mattys mmattys at rochester.rr.com
Tue Apr 18 12:32:11 CDT 2006


The search on Google is
"ADODB.Connection" "Memory+Leak" +PHP

Sample message:
COM-Support on Apache 1.3.27 with PHP 4.2.2 (as Apache dso) seems to have a
memory leak. Every time I run the following code, memory usage of Apache
is increased by about 86 kB:


$cid = new COM('ADODB.Connection');
$cid->Open ("File Name=udlfile.udl");
$rid = $cid->Execute ("SELECT * FROM test");


$rid->Close();
$rid->Release();
$rid = NULL;
unset ($rid);


$cid->Close();
$cid->Release();
$cid = NULL;
unset ($cid);



Michael R. Mattys
MapPoint Developer
www.mattysconsulting.com
----- Original Message ----- 
From: "Ken Ismert" <KIsmert at TexasSystems.com>
To: "Access Developers discussion and problem solving" 
<accessd at databaseadvisors.com>
Sent: Tuesday, April 18, 2006 1:11 PM
Subject: Re: [AccessD] Memory leak


>
> Micheal,
>
>> The strange thing is that this leak has been specifically
>> identified as a problem with COM based calls by PHP devs
>> in the newsgroups.
>
> Could you post some links to these discussion threads? I'd like to see
> the code samples they are using.
>
> Thanks,
>
> -Ken
> -- 
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com 




More information about the AccessD mailing list