PHP - Windows
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists PHP - Windows

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old December 31st, 2005, 11:56 AM
Alex Turner
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
COM Dlls Not Unbinding From Process

Hi All,

I am doing a lot of PHP work with CM. The system uses php 4.3.3.3 and
php is being driven via FCGI from our own web server (TAG).

We create an instance of an in-process CM server using the following
technique:

function GetFactory()
{
static $obj;
static $objSet = 0;
if($objSet==0)
{
$obj=new CM("TPNJDCom_Factory");
$objSet=-1;
}
return $obj;
}

The returned CM object is then used as a factory to all our other CM
objects.

The snag is that the binding to the CM dll is not being released at the
end of script execution. This is visible using ProcessExplorer from
SysInternals.

If I call com_release the returned ref-count is zero. To ensure that
php's garbage collector was not the culprit, I tried repeatedly calling
com_release at the end of the script - no change.

The upshot of this issue is that each PHP process in the FCGI process
pool gradually gets bigger as more and more dlls are bound :-(

Any ideas are welcome, I have gone through the php source but cannot
quite figure the problem. A C level fix is fine for us as we are going
to move over to using a home complied version of 4.4.1 asap.

Thanks!

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists PHP - Windows > COM Dlls Not Unbinding From Process


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek