The information in this article applies to:
SYMPTOMSCArchive::GetObjectSchema returns the schema of the object loading the serialized information rather than the schema of the object being loaded. This occurs only when an object with a schema greater than 0 loads an object with a schema equal to 0 and the object being loaded is not the first of this type. CAUSE
When the first object of a type that has a schema of 0 is loaded, the value
of the CArchive member, m_nObjectSchema, is set to a value of 0. When
further objects of the same type are loaded, m_nObjectSchema is set to the
schema of the object loading the serialized information.
When the schema of a type that has already been loaded is 0 the value
returned from GetValueAt is 0 and the else part of the if statement is
executed. This sets the value of the schema for the object being loaded as
the schema of the existing object.
RESOLUTION
There are two ways to work around this issue:
-or- STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual Studio
97 Service Pack 3. Q170365 INFO: Visual Studio 97 Service Packs - What, Where, and Why Additional query words:
Keywords : kbVC420bug kbVC500bug kbVS97sp3fix |
Last Reviewed: July 28, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |