Boost C++ Libraries: Ticket #295: Is there a Bug In boost::any https://svn.boost.org/trac10/ticket/295 <pre class="wiki">Is there a Bug In boost::any Description: In my DLLThere is a class as follows: class MyClass { ... boost::any m_var; } and DLL has an interface void SetVar(boost::any &amp; anyValue) { pMyClass-&gt;m_var = anyValue; } There is an application uses the SetVar interface and pass into a boost::any object. void SomeFunc() { ... boost::any anyValue; ... pfSetVar(anyValue); ... } result: when exit, The application will be crash , the spot of crash is at the destruction of class boost::any. ... class any { ... ~any() { delete content; // errorerror code 0xC0000005 } ... } ... environment: MS windows 2000 pro sp4 MS vc6 sp5 boost 1.31 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/295 Trac 1.4.3 kevlin Tue, 11 Oct 2005 09:11:03 GMT status changed https://svn.boost.org/trac10/ticket/295#comment:1 https://svn.boost.org/trac10/ticket/295#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=32864 This appears to be standard copy usage of an any, which is a well-trodden path and has had no other bugs reported against it. Likewise, inspection of the code does not reveal any hidden corner cases. I suspect that something else in the submitter's code led to memory trampling of some kind. So, in answer to the summary of the defect, no, I don't believe there is. However, if a self-contained example that demonstrates a problem can be posted, this conclusion can be revisited and the defect reopened. </pre> Ticket anonymous Tue, 09 Aug 2011 08:45:42 GMT severity set https://svn.boost.org/trac10/ticket/295#comment:2 https://svn.boost.org/trac10/ticket/295#comment:2 <ul> <li><strong>severity</strong> → <span class="trac-field-new">Problem</span> </li> </ul> <p> evn i have faced this issue but i have hot got core dump instead i got memory leak </p> Ticket anonymous Tue, 09 Aug 2011 08:46:39 GMT <link>https://svn.boost.org/trac10/ticket/295#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/295#comment:3</guid> <description> <p> evn i have faced this issue but i have not got core dump instead i got memory leak </p> </description> <category>Ticket</category> </item> </channel> </rss>