Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Interrupting a COM object method call
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP
Divers
Thread ID:
01396050
Message ID:
01396055
Vues:
87
See if you can use MTmyVFP.

>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.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform