Article ID: 240809 - View products that this article applies to.
This article was previously published under Q240809
Using OLE automation with another application, such as Microsoft Word, you may receive the following error message if you are using Microsoft Windows NT 4.0, Windows 2000, Windows XP, or Windows Server 2003:
If you are using Windows 95 and Windows 98, you receive the following error message:
This action cannot be completed because the other application is busy. Choose 'Switch To' to activate the busy application and correct the problem.
This action could not be completed because the other program is busy. Click the appropriate button on the taskbar to activate the program and correct the problem.
This error message usually occurs because the OLE activated application has an open dialog box and is expecting user input. This error message can be eliminated by using the property OLERequestPendingTimeout. This property specifies the amount of time after an Automation request is made before a busy message is displayed. The default is five seconds and is specified in milliseconds. By setting the timeout to 0, Microsoft Visual FoxPro will wait indefinitely for the other application. The busy message will not be displayed whether the Automation request is pending or if a mouse or keyboard event occurs.
Visual FoxPro Online Help, version 6.0; Search for "OLERequestPendingTimeout"
Article ID: 240809 - Last Review: February 24, 2005 - Revision: 3.4