Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to wait till word finishes?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00724707
Message ID:
00725073
Views:
19
This message has been marked as a message which has helped to the initial question of the thread.
Hi!

Wait Widnow?

Well, I'm no 80% sure it have something related to _VFP.AutoYield or DOEVENTS. As I said, try to play with them, for example, turn _VFP.AutoYield off and use DOEVENTS after the UPDATE() call, or just turn _VFP.AutoYield on.

HTH.

>Vlad thanks for the reply.
>
>As far as my assumption is concerned if I place a wait window nowait after the Update it consistently works! Otherwise Word throws an exception "The instruction at 0x.... referenced memory at 0x... The memory could not be read". Now as this is not a Fox error I didn't think I could trap it - is that correct?
>
>>Hi!
>>
>>> ... so I'm assuming that my code is trying to continue before the Update() has finished.
>>
>>First of all, I would get rid of asumption here and assure that it is really continue executing befire Update() finished.
>>
>>Also, there are a couple of background-processing things in MS Word (like file saving and printing in background) that you can turn off using certain properties.
>>
>>You can use as a workaround following: just trap for that error and do several attempts till you get desired result.
>>
>>Also, (just for luck ;-) try to play with _VFP.AutoYield property.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform