Problem closing COM object

From: Date: Sun, 02 Feb 2003 14:26:22 +0000
Subject: Problem closing COM object
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-18299@lists.php.net to get a copy of this message
Hey there, I've built a nice little app for a client that will open a COM object, and save data to an Excel spreadsheet. However, I'm having problems closing it. It seems to close fine on my laptop, but on my clients machine, the instance of Excel stays loaded, and multiple instances are loaded every time the script is run. I've tried several different methods of closing it, that's why this code is a little longer than the examples around... Code: ... $ex->Application->ActiveWorkbook->Close("False"); $wkb->Release(); $ex->Quit(); $ex->Release(); unset($wkb); unset($ex); chris kranz fatcuban.com

« previous php.windows (#18299) next »