[xsd-users] polymorphism across dlls broken

Boris Kolpackov boris at codesynthesis.com
Thu Sep 18 17:05:12 EDT 2008


Hi Eric,

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:

http://www.codesynthesis.com/pipermail/xsd-users/2008-June/001763.html


> 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:

http://www.codesynthesis.com/pipermail/xsd-announcements/2008/000029.html

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.

Boris




More information about the xsd-users mailing list