activexvisual-foxprofoxproactivexobjectocx

How to remove This action cannot be completed because the other application is busy message


Windows 10 desktop application uses upt.ocx control to perform card payments.

If ocx control is busy (waits for pin entry from external usb pinpad or transfers data) and users switches applications, message

This action cannot be completed because the other application is busy. Choose Switch to, Retry or Cancel to activate the busy program and correct the problem

appears.

enter image description here

If retry is selected ocx returns transaction failure but money is still transferred from bank card.

How to disable this prompt ? Application should not respond if ocx is busy or some other method.

Application is programmed in Microsoft Visual FoxPro 9


Solution

  • Set application.oleserverbusytimeout = 0 to prevent that.

    Check: https://hackfox.github.io/section4/s4g702.html