Jump to content

'com_exception'. The message filter indicated that the application is busy


Recommended Posts

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

 

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.