If I load the dll / so file at runtime (i.e. using LoadLibrary() or dlopen() ), what is the behavior of the C ++ atexit() function? Is this called if I unload the library before the application exits? And can you expect the same behavior on all platforms? (In particular, windows and unix-like systems)
source share