Article ID: 109545 - Last Review: December 3, 2003 - Revision: 2.1 BUG: Retaining Clipboard IDataObject Causes Unexpected ResultThis article was previously published under Q109545 On This PageSYMPTOMS
An application holding on to a clipboard IDataObject pointer, and making
repeated calls to IDataObject::EnumFormatEtc() through that pointer, may
find that the set of formats returned by EnumFormatEtc() changes between
calls.
RESOLUTION
As noted in the Object Linking and Embedding SDK version 2.01
documentation, an application that calls OleGetClipboard() to retrieve an
IDataObject interface pointer should hold on to that IDataObject pointer
only for a very short time.
STATUS
Microsoft has confirmed this to be a problem in the 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 INFORMATIONSteps to Reproduce
The dialog box detects changes to the clipboard contents by calling SetClipboardViewer() to splice itself into the clipboard viewer chain. | Article Translations
|
Back to the top
