From 385891896 at qq.com Fri May 11 10:10:07 2018 From: 385891896 at qq.com (=?gb18030?B?dHR0bGxs?=) Date: Mon May 14 10:37:18 2018 Subject: [xsd-users] I need CodeSynthesis XSD with MS Visual Studio 2015 (VC++ 14.0) Message-ID: Hi: I need CodeSynthesis XSD with MS Visual Studio 2015 (VC++ 14.0).I can not find one in the list your Website given? -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 30161 bytes Desc: not available Url : https://codesynthesis.com/pipermail/xsd-users/attachments/20180511/34995314/attachment-0001.jpe From isharp at atis.org Wed May 23 06:33:51 2018 From: isharp at atis.org (Iain Sharp) Date: Wed May 23 06:35:16 2018 Subject: [xsd-users] Tree FAQ memory management question Message-ID: Hi, In the "How do I create an empty Xerces-C++ DOM document?" section, a DOMDocument smart pointer is created with the line: xml::dom::auto_ptr doc ( impl->createDocument ( (ns.empty () ? 0 : xml::string (ns).c_str ()), xml::string ((prefix.empty () ? name : prefix + ':' + name)).c_str (), 0)); I can't unpick how the smart pointer behaviour is interacting with the XERCESC memory management in this example. When the "doc" goes out of scope, will the doc->release() method be called to free any dependent resources before the doc object is destroyed? Thanks Iain From boris at codesynthesis.com Thu May 24 12:23:41 2018 From: boris at codesynthesis.com (Boris Kolpackov) Date: Thu May 24 12:24:44 2018 Subject: [xsd-users] Tree FAQ memory management question In-Reply-To: References: Message-ID: Iain Sharp writes: > xml::dom::auto_ptr doc ( > impl->createDocument ( > (ns.empty () ? 0 : xml::string (ns).c_str ()), > xml::string ((prefix.empty () ? name : prefix + ':' + name)).c_str (), > 0)); > > > I can't unpick how the smart pointer behaviour is interacting with > the XERCESC memory management in this example. When the "doc" goes > out of scope, will the doc->release() method be called to free any > dependent resources before the doc object is destroyed? Yes, release() is called (which deletes the DOMDocument object). Boris