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

Last reviewed: February 17, 1995
Article ID: Q89611
The information in this article applies to:
  • Microsoft OLE version 1.0

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.

POSSIBLE 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 reference words: 3.00 3.10 OLESVR.DLL OLECLI.DLL 1.00
KBCategory: kbole kbprg kbprb
KBSubcategory: LeoneSvrStart


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 17, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.