[xsd-users] polymorphism across dlls broken
boris at codesynthesis.com
Thu Sep 18 17:05:12 EDT 2008
Eric Niebler <eric at boostpro.com> writes:
> Is this a known problem?
Your analysis of the problem is quite correct, well done. Yes, it is
a know problem. It was reported a couple of months ago by Matthew
Hutchins. Here is the thread in the archives:
> The solution, it seems, would be to move the definition of the
> type_serializer_map object into a separate dll, so that all dlls
> can share the instance.
In the upcoming 3.2.0 release (should be out in a few weeks) we have
implemented support for exactly this. You can try it out in the beta:
Once you get the archive, look for the --export-maps and --import-maps
options in documentation/xsd.xhtml.
In a nutshell, you will need to compile schemas that go to your "root"
DLL with the --export-maps. And schemas for all other DLLs and the
executable with --import-maps.
More information about the xsd-users