RE: PHP4 & GIF Generation, I'm stuck!

From: Date: Tue, 11 Jul 2000 08:47:12 +0000
Subject: RE: PHP4 & GIF Generation, I'm stuck!
Groups: php.windows 
Request: Send a blank email to php-windows+get-1010@lists.php.net to get a copy of this message
---------------------------------------------------------------------------- ----------------- Disclaimer: The information contained in this email is intended only for the use of the person(s) to whom it is addressed and may be confidential or contain legally privileged information. If you are not the intended recipient you are hereby notified that any perusal, use, distribution, copying or disclosure is strictly prohibited. If you have received this email in error please immediately advise us by return email at postmaster@normandy.com.au and delete the email document without making a copy. ---------------------------------------------------------------------------- ----------------- Howard, First of all cross-posting is probably not required in most situations. Php-windows is probably the right place for anybody who cares about PHP + COM. I've never used com in PHP but it looks like the connection has been initialised but never killed. Is there any sort of unload function for com or your ActiveX control? Try unset($id) and see if that works. Can you use other com objects repeatedly? Like the MS Word example? Can other tools the otf_GIF com object repeatedly? Is there away of tracing what OCX's are being used in memory? I seem to remember some tool that came with VB years ago that allowed you to kill specific .dll's in memory and maybe .vbx's but hey i know nothing about any of this, and im just guessing. Since you are from dkt.com i assume you are somehow involved in writing otf_GIF why not just build a C app to do it on the command line? Deploy your site with the command line option then go back to working on this problem. Something like "CoInitialize has not been called" sounds like you need to expressly state that more than one of these things can be in use at a time... (Even if you did unset() it i would be concerned about simultaineous users) Just some guesses, mn -----Original Message----- From: Howard Cohodas [mailto:Howard.Cohodas@dkt.com] Sent: Tuesday, July 11, 2000 7:03 AM To: Website-Talk; Php-Windows; Php-General; Php-Dev Subject: PHP4 & GIF Generation, I'm stuck! I'm out of things to try so I hope one of you has an idea. The only item holding us back from deploying a php4 site we are working on is that we are unable to get the Windows COM interface working. Our Configuration.. OS - NT4 SP6a PHP Version - 4.0.1pl2 HTTP Server - O'Reilly WebSite Pro 2.4.22 Code Snippet.. $id = new com("otf_GIF31.GIF_Encode"); print "Loaded otf_GIF Version {$id->Version}"; This code works perfectly the first time it is used after restarting the http server. The output is.. Loaded otf_GIF Version otf_GIF31 3.1.18. After that the error message is.. Warning: Unable to obtain IDispatch interface for CLSID {36D611A0-FAE1-11D1-AAEF-0000C0378AC3}: CoInitialize has not been called. in D:\Web_Sites\Testing_PHP4\HTdocs\test_com.php4 on line 9 Loaded otf_GIF Version TIA Howard A. Cohodas Design Knowledge Technologies Inc. Phone: (011)(330)492-9900 FAX: (011)(330)492-1100 otfGIF Encoder: http://www.dkt.com/otfGIF

« previous php.windows (#1010) next »