Problem with releasing COM objects when using php-gtk
| From: | Grzegorz Godlewski | Date: | Mon, 22 Sep 2003 15:28:55 +0000 |
| Subject: | Problem with releasing COM objects when using php-gtk | ||
| Groups: | php.gtk.dev | ||
| Request: | Send a blank email to php-gtk-dev+get-531@lists.php.net to get a copy of this message | ||
Hello
After executing that script:
<?
//////////////
if (!class_exists("gtk"))
{
if (strtoupper(substr(PHP_OS,0,3))=="WIN")
dl("php_gtk.dll");
else
dl("gtk.so");
}
//////////////
$MyEx = new COM("Excel.Application",null,CP_UTF8) or Die ("Did not connect");
$xls = &$MyEx->application->Workbooks->Open(getcwd()."\\arkusz.xls") or Die
();
$xls->close(false);
$MyEx->quit();
$MyEx->release();
unset($MyEx);
?>
Excel is still in the memory after quiting php.
Without loading gtk it's ok.
Could anybody check/fix it?
BR
--
\ Grzegorz Godlewski /
/ Mail: ggodlewski()pld-linux.org GG: 1600799 ICQ UIN: 118261503 \