BUG: Retaining Clipboard IDataObject Causes Unexpected Result
Article ID: 109545
Article Last Modified on 12/3/2003
APPLIES TO
- Microsoft OLE 2.01
- Microsoft OLE 4.0, when used with:
- Microsoft Windows NT 3.51 Service Pack 5
This article was previously published under Q109545
SYMPTOMS
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.
Additional query words: 2.01 3.50 4.00 toolkit
Keywords: kbbug KB109545