From: <dan...@ya...> - 2002-05-15 22:53:29
|
--- Chris Hansen <pop...@so...> wrote: > While using the latest MinGW runtime (Beta 2, I believe), I've noticed > that DLL now depends on these functions from MSVCRT.DLL: > __dllonexit > _errno > fflush > free > malloc This is to let dll code register functions with atexit. Previously atexit was defined as noop stub because calls to atexit from the dll would end up registering functions in the app's atexit table. Dlls now use their own private atexit table (hence calls to malloc, free and errno) and calls to atexit get thunked to __dllonexit which fills in the private atexit table. The fflush is there to fix a bug that resulted when dll detached before output buffers were flushed. This happened with redirected output. Danny > > Why is that? There was no such dependencies in the old runtime. > > Regards > Chris > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: ban...@so... > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users http://briefcase.yahoo.com.au - Yahoo! Briefcase - Save your important files online for easy access! |