Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interrupting a COM object method call
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Interrupting a COM object method call
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP
Miscellaneous
Thread ID:
01396050
Message ID:
01396050
Views:
97
Is there a way to cancel a method call to a COM object in VFP ?

Here's my scenario.
The app is integrated with QuickBooks using the QBFC COM object.
At one of our sites, it sometimes take a very long time for the BeginSession() method to connect to the company file. Once in a while, it does not connect at all and the user must use the task manager to shut down our app and try again.

I'd like to be able to put a timeout on this so that the user does not need to take such action. But the ways I know of in VFP for interrupting execution put the brakes on after the current line finishes executing. In our case, the current line does not finish executing.

Is there an API call or some other strategy that can halt execution and enable control to be returned to VFP ?

Thanks.
Carl Chambers
Cardol Data Systems
Next
Reply
Map
View

Click here to load this message in the networking platform