Microsoft KB Archive/89611

= PRB: Error Inserting or Editing a Linked or Embedded OLE Objec =

Article ID: 89611

Article Last Modified on 2/19/2002

-

APPLIES TO


 * Microsoft OLE 1.0

-



This article was previously published under Q89611



SYMPTOMS
An OLE client application receives the error codes OLE_ERROR_COMM or OLE_ERROR_POKENATIVE when trying to insert or edit a linked or embedded OLE object.



CAUSE
The server application has yielded before calling the OleRegisterServer or OleRegisterServerDoc functions.



RESOLUTION
Due to the synchronous nature of DDE messages and the fact that OLE 1.0 is implemented with DDE, an OLE server application should not yield before calling the OleRegisterServer function. Additionally, if the server command line contains the /Embedding switch, the function OleRegisterServerDoc should also be called before yielding.

NOTE: Yielding does not necessarily require calling GetMessage or PeekMessage -- any Windows function which yields before returning will also cause the problem mentioned above, like MessageBox or DialogBox.

Additional query words: 3.00 3.10 OLESVR.DLL OLECLI.DLL 1.00

Keywords: KB89611

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.