[vtkusers] Vtk nightlies and Win2000 -- Unloading the DLLs

Nigel Nunn nNunn at ausport.gov.au
Sun Aug 27 12:48:04 EDT 2000


I recently noticed that exiting a Vtk application does not 
appear to release the 40 MB of memory that seems to be used 
by the set of DLLs we build from the nightly vtk source. 
 
This initial loss of RAM only happens once, so I assume the 
DLLs are remaining loaded after a Vtk-enabled program exits. 
 
Of more concern is that we loose a further 4MB after starting 
and stopping any application that calls the Vtk libraries. 
This applies to TCL demos, the basic MFC Win32 Sample, as well 
as our own MFC-based application.  This means that after running 
our application ten times, or even 10 TCL examples, we have lost 
40 + (10*4) = 80 MB of RAM.  Only way to recover seems to be 
rebooting.  Logging off then on does not recover this memory.  
I cannot recall if this also happened under WinNT 4.0. 
 
What sort of implicit linking does PCMAKER set up for the 
Win32 DLLs?  Does this need different treatment under Win2000? 
We are using Windows 2000 and Vtk nightlies from May and 
August on Pentium II & III multiprocessor boxes. 
 
Thanks, 
Nigel 





More information about the vtkusers mailing list