Boost Users :
Subject: Re: [Boost-users] [Boost::any] Memory management using dynamic libraries
From: Nevin Liber (nevin_at_[hidden])
Date: 2013-12-26 12:37:20
On 25 December 2013 09:26, Eugenio Bargiacchi <svalorzen_at_[hidden]> wrote:
> I'm building a framework which needs to allow communication between
> shared libraries which are loaded at runtime.
> The problem that I had, for example, resulted in a segfault if I tried
> to unload the modules from memory before the destruction of the map
> (which is owned by the framework), during boost::any destruction.
Unloading shared libraries in C++ is fraught with peril.
Could the problem be that you've unloaded the code for the destructor of
the object stored in the boost::any object?
-- Nevin ":-)" Liber <mailto:nevin_at_[hidden]> (847) 691-1404
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net