Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interrupting a COM object method call
Message
From
23/04/2009 09:08:31
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP
Miscellaneous
Thread ID:
01396050
Message ID:
01396060
Views:
70
>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.

PMJI, Thanks! This may be just what I was looking for as well. I have some heavy COM processes in an app I need to be able to control the timeout on (aside from the COM timeout built in by the 3rd party). It would be nice if there was a way to do an asynch call to a COM...
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform