[xsd-users] segfault on auto_ptr release

Boris Kolpackov boris at codesynthesis.com
Fri Nov 30 01:36:07 EST 2007


Hi Alberto,

Alberto Colombo <a.colombo at kingston.ac.uk> writes:

> I compiled the schemas with the following options:
>
> [...]
>
> --generate-wildcard

Ok, that explains it. When you use the --generate-wildcard option,
the mapping uses Xerces-C++ DOM fragments to represent content
matched by wildcards. As a result, you need to have the Xerces-C++
runtime initialized for the lifetime of your object model.

For more information, see Section 2.12, "Mapping for any and anyAttribute"
in the C++/Tree Mapping User Manual:

http://www.codesynthesis.com/projects/xsd/documentation/cxx/tree/manual/#2.12

As well as the wildcard example in examples/cxx/tree/. I am also attaching
the modified Assess.cpp file for your reference.

Boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Assess.cpp
Type: text/x-c++src
Size: 565 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20071130/aa417e03/Assess.cpp


More information about the xsd-users mailing list