Hi, This information applies for Linux. Read the man page for dlopen. "If the library exports a routine named _init, then that code is executed before dlopen returns." Read the man page for dlclose. "If the dynamic library exports a routine named _fini" -- Craig Rodrigues http://www.gis.net/~craigr rodrigc@mediaone.net