Ilya Zakharevich wrote: > > 3. Modified dl_generic_private_init() in dlutils.c to install > > Perl_call_atexit() handler that calls dl_unload_all_files() when the > > interpreter exits. > > Is it good enough? What is the semantic of loading/unloading DLL? > What happens to initialized/uninitialized data? Is it *guarantied* to > be reset on the next loading? On Solaris, if you have defined a .fini it will be called on dlclose(). Failing that, it just gets munmap'd, and any associated data will be zapped. Alan Burlison