vb6 activex exe Component Request Pending

Posted on 2006-05-02
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
    LVL 6

    Accepted Solution

    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

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Introduction While answering a recent question ( in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now