Re: Cacheing of .dll's

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Sat, 11 Nov 2006 20:11:01 -0800, dadoffive wrote:

I have a system with 5 users running the same application. If i upgrade
.dll, when will the users be executing the new code?

Will they have to exit and re-enter the program?
Will they have to log off and back on the system?
Will all users have to log off and back on the system?
Will the terminal server (Server 2003) need to be rebooted?

Thanks!

Windows will The automatically unloads a DLL when its usage count is zero, but only after the DLL has not been used for a period of time.
This inactive period might be unacceptably long at times, especially when a extension DLL is being debugged.
For operating systems prior to Windows 2000, you can shorten the inactive period by adding the following
information to the registry.
[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer] "AlwaysUnloadDLL

My advice is that all clients exit the program and logs off, replace dll, and restart server. As it is a small amount of
users I think those steps would not impact much their work time, and it will save your time and possibility that something
can go wrong.

Regards, Frane Borozan
.



Relevant Pages

  • Re: Running object Table
    ... It is not a good idea to register objects in ROT from DLLs. ... The hosting process can exit any time - it doesn't know about ... is not a clean COM server anymore. ... existence you can find if the DLL is running in the other process. ...
    (microsoft.public.vc.atl)
  • Re: Tcl [exit] hanging?
    ... by exiting using the java system exit ... Windows DLL code causing a deadlock. ... calling functions such as these ...
    (comp.lang.tcl)
  • Re: Bizarre and annoying compiler error message.
    ... if I exit VS and go back in I do not have to delete the obj directory. ... All of my DLL references for DLL are set to CopyLocal=true. ...
    (microsoft.public.dotnet.general)
  • Re: QueueUserWorkItem with functions in a DLL, how to unload safely?
    ... special event handle that only gets signalled when you want the thread to exit. ... unload code will know when it's safe. ... You'll likely need some way of signalling them to stop normal ... The DLL is part of a Plugin-Concept ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Determine if the main app is a console or GUI?
    ... Don't issue error messages at all, ever, under any conditions. ... And in a DLL, NEVER, EVER, ... FOR ANY REASON IMAGINABLE, EVER, UNDER ANY CIRCUMSTANCES, call Exit(). ... a console app as well as from a GUI app. ...
    (microsoft.public.vc.mfc)