Re: COM-problem: Uninitializing COM-Objects <-> runtime error
| From: | Mario Trojan | Date: | Tue, 05 Aug 2008 14:24:30 +0000 |
| Subject: | Re: COM-problem: Uninitializing COM-Objects <-> runtime error | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-29005@lists.php.net to get a copy of this message | ||
It seems like the error message only occurs if i run the script in CLI interface. There is no error msg/popup or whatever, if the script is running in Apache.
Mario Trojan schrieb:
Hi, i have a problem regarding some COM objects, especially with unitializing. It is possible to create a new COM object without problems, but at the end of each script a message is shown by the Microsoft Visual C++ Runtime Library: "This application has requested the runtime to terminate it in a unusual way. Please contact the application's support team for more information". I think that this message is thrown if one of the used COM objects wasn't uninitialized properly. Many COM objects have a method that needs to be called for uninitialization (e.g. Quit()), but some objects don't. And as soon as i try to work with one of these objects, the error message mentioned above is shown. Is there any way to uninitialize the COM-object anyway, or at least to suppress that error message so that the script may end properly (otherwise a keypress is needed to end the script)? This problem occurs with PHP versions between 5.2.1 and 5.2.6, i didn't test it with other versions yet. Best Regards, Mario Trojan