Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messaging from a com exe
Message
 
 
To
13/10/2003 11:24:54
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00833154
Message ID:
00838276
Views:
24
>the com object is working fine, but sometimes if you click on the form you get the switch to / retry dialog box

For me, this usually happens when a call has been made to the COM object without an immediate return.

Try adding a label which is only visible if you are debugging (typically when _Vfp.StartMode == 0)

Change the caption to “Get Progress” before you query the COM objects Progress property. And set it to an empty string immediately after the query. Example:
lblBusy.Visible = (_Vfp.StartMode == 0)
lblBusy.Caption = “Get Progress”
iProgess = oMyComObject.iProgress
lblBusy.Caption = “”
You should do something similar around the call that starts your COM process. And also perhaps the code that instantiates the object (if that is also slow).

In theory the lblBusy should not have a readable caption long enough for you to actually have time to read it.

Your might also want to look at:
Re: Start process on another computer Thread #836059 Message #837191

What happens when you STEP through the code with the debugger - does it step over the calls to the COM object with no perceptible delay?

Also have you tried using the Coverage Profiler, to see if any code (not in your COM object) is taking forever. See SET COVERAGE TO and the Coverage Profiler menu option on the Tools menu.
censored.
Previous
Reply
Map
View

Click here to load this message in the networking platform