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

ID: Q89611

The information in this article applies to:

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

Last Reviewed: February 17, 1995