COM-problem: Uninitializing COM-Objects <-> runtime error
| From: | Mario Trojan | Date: | Wed, 02 Jul 2008 14:21:19 +0000 |
| Subject: | COM-problem: Uninitializing COM-Objects <-> runtime error | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-28990@lists.php.net to get a copy of this message | ||
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