title: Pointers from dynamic loaded library in c++
body: <p>I know that dynamic loaded libraries share the same address space but I'm not sure what happens when I allocate memory in a dynamically loaded library and close the library. Is the allocated object still valid when the object is not a part of the loaded library? For example a simple std::string or any of my classes?</p>