BUG: "Invalid Page Fault" After OLE Automation with WordPerfectLast reviewed: April 25, 1997Article ID: Q160251 |
The information in this article applies to:
SYMPTOMSThe following error occurs after you make an OLE Automation call to Corel WordPerfect 7.0:
VFP.EXE Caused an Invalid Page Fault in module OLEAUT32.DLL CAUSEWordPerfect is attempting to send a return value to Visual FoxPro.
WORKAROUNDUse an assignment statement to call the object methods.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONCorel WordPerfect 7.0 does allow OLE Automation. In Visual FoxPro, you can use the CreateObject command to create a reference to a WordPerfect object, but you will still get the error when you try to call any of its methods.
Steps to Reproduce BehaviorType the following commands in the Visual FoxPro Command window:
oWP = CREATEOBJECT("WordPerfect.PerfectScript") oWP.FileNewWordPerfect 7.0 actually creates a new document before Visual FoxPro generates an error. To work around the problem, change the last command to the following:
result = oWP.FileNew() |
Additional query words: 5.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |