Microsoft KB Archive/110716

= PRB: GetData Returns Outdated Data for OLE 1.0 Object =

Article ID: 110716

Article Last Modified on 3/3/2005

-

APPLIES TO

 Microsoft OLE 2.03 Microsoft OLE 4.0, when used with:  Microsoft Windows NT 4.0

 Microsoft Windows NT 3.51 Service Pack 5

 Microsoft Windows 95 </li></ul>

-

<div class="notice_section">

This article was previously published under Q110716

<div class="symptoms_section">

SYMPTOMS
If an OLE 2.0 container application document contains an embedded OLE 1.0 object, and the container calls IDataObject::GetData to retrieve data for that object, the data returned is out of date, and does not reflect the OLE 1.0 server's most recent changes to the object.

<div class="cause_section">

CAUSE
OLE 1.0 embedded object servers only update the cache when the user chooses the Update command from the File menu. OLE 1.0 objects do not update the cache for every change to the object. Therefore, an OLE 1.0 object's cache often contains outdated data.

<div class="resolution_section">

RESOLUTION
The container can obtain the latest object data by calling IOleObject::Update. This function ensures that any data or view caches maintained inside the object are up to date.

<div class="references_section">