lionic Posted November 27, 2010 Share Posted November 27, 2010 Hi, I seem to be getting the following exception when trying to open an Word COM Object. PHP Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `D:\\Dev\\UploadedFiles\\text resources\\Test_14.doc': The message filter indicated that the application is busy Here is my code. try{ $word = new COM("D:\\Dev\\UploadedFiles\\text resources\\Test_14.doc", null, 65001); }catch(Exception $e){ echo $e; } A funny thing is that when i run the above snippet from Eclipse as a "Script", it works! Only when i run it as a "Web Script" does this problem appear. I'm running Windows Vista Apache/2.2.17 (Win32) PHP/5.3.3 Debug Build no Thread Safety enabled Quote Link to comment https://forums.phpfreaks.com/topic/219982-com_exception-the-message-filter-indicated-that-the-application-is-busy/ Share on other sites More sharing options...
Mchl Posted November 27, 2010 Share Posted November 27, 2010 Do you get this every time, or only once in a while? Quote Link to comment https://forums.phpfreaks.com/topic/219982-com_exception-the-message-filter-indicated-that-the-application-is-busy/#findComment-1140323 Share on other sites More sharing options...
lionic Posted November 28, 2010 Author Share Posted November 28, 2010 It is consistently reproducible. Quote Link to comment https://forums.phpfreaks.com/topic/219982-com_exception-the-message-filter-indicated-that-the-application-is-busy/#findComment-1140484 Share on other sites More sharing options...
lionic Posted November 28, 2010 Author Share Posted November 28, 2010 Hi, Thanks for trying to help. I figured out the solution finally. Here's what was happening before. I had installed Apache via an installer, using the admin account. This installed the Apache Monitor which by default installed an "Apache 2.2" Service in the "Services" section of Administrative Tools. So when I used to log in with my normal user account/admin user account, the apache service would start up under the "System" role. Somehow this was the problem. The moment i stopped this service, and use the command prompt to start httpd, things worked out fine. I still don't know why this would happen. Any ideas? Anything that i can do to avoid having to start up httpd manually? Quote Link to comment https://forums.phpfreaks.com/topic/219982-com_exception-the-message-filter-indicated-that-the-application-is-busy/#findComment-1140615 Share on other sites More sharing options...
Mchl Posted December 1, 2010 Share Posted December 1, 2010 I've never come across something like this :/ Quote Link to comment https://forums.phpfreaks.com/topic/219982-com_exception-the-message-filter-indicated-that-the-application-is-busy/#findComment-1141735 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.