[Webinar] Streamline your web hosting managementRegister Today


vb6 activex exe Component Request Pending

Posted on 2006-05-02
Medium Priority
Last Modified: 2008-01-16
I have a vb6 based simulation. One of the database roputines was moved into an activeX exe. Now when the processor intensive routine is run and if i happen to interact with my main app i get a message box "Compoennt Request Pending"  "The action cannot be completed because the other application is busy. Choose 'Switch To' to activate the busy application and correct the problem.

I have tried to place doevents in my loop in the activex exe - but thsi did not correct it. Shoudl i do a sleep?

Question by:nphoenix

Accepted Solution

junglerover77 earned 1000 total points
ID: 16592326
No, this shit will always happen when your ActiveX EXE are performing some operations, no matter how many "Doevents" and "Sleep"s you add. That's born with Out-of-process Com Access.

2 solutions:
First one, change your ActiveX EXE back to Active DLL. In normal cases, In-process Com access will not cause that error.
Second one, make your main application as a multi-thread application, and create this Out-of-Process COM Object in a thread.

Author Comment

ID: 16717497
The solution that worked was to take teh functionality of the ActiveX into its own exe. Mot an elegant communication - we write a txt file and launch teh exe when we need processing.

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question