[xsde-users] Serialization crashes for data model constructed
from multiple xsd files
Boris Kolpackov
boris at codesynthesis.com
Tue Jun 19 09:08:21 EDT 2012
Hi Nikita,
Nikita Visnevski <nikita_visnevski at hotmail.com> writes:
> When I attempt serialization, I get a hard crash with unhandled exception
> - access violation. The crash happens in <elements.ixx> in the
> serializer_base::_set_type method.
>
> If I move all the definitions to a single xsd file, the problem goes away.
This is most likely due to the XSD/e compiler not "seeing" all the
derivations of a polymorphic hierarchy when generating aggregates.
This can be resolved with the --polymorphic-schema option. See
Section 3.7, "Support for Polymorphism" in the C++/Hybrid Mapping
Getting Started Guide for details.
Boris
More information about the xsde-users
mailing list