VB and dll's

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello,
I have a question regarding how VB calls dll files and loads/unloads them from memory. If this isn't the correct forum, please point me to the correct one. I'm not really a programmer, please forgive me if I don't know what I'm doing. :)

That being said, we have an app that was written in VB that loads a number of dll's. After a period of inactivity in the program (maybe about 10 minutes) some of these dll's unload. Not all, but most of them. This is causing significant delays within the app when the dll's need to be reloaded.

This is what the software vendor says regarding the way the dll's they created behave:

Objects are closed (or destroyed) under the sole control of Windows.
Windows holds objects in memory in case they need to be used again. If
an object is not needed for period of time or the system runs low on
resources the object is closed to free up space for active processes.

My question is, is there a way to make particular dll's stay open until the program is closed? I would like to have them all load and stay loaded, not just close on their own.

BTW, the system running low on resources is not an issue.

Thanks,
Walt




.



Relevant Pages

  • Re: REGION=0M and LSQA
    ... At the time, memory was very expensive, and we ... remaining storage and always issued a return code zero. ... programs actually worked in production, ... all of the resources used by the job up until that point ...
    (bit.listserv.ibm-main)
  • Re: A realistic price comparison
    ... > Spreading Apple FUD is just as bad as spreading Microsoft FUD. ... > However, I assure you, I had more than enough resources on my XP ... > instilled in them by having limited memory and disk space early on. ...
    (comp.sys.mac.advocacy)
  • Re: Alternatives to C: ObjectPascal, Eiffel, Ada or Modula-3?
    ... pretty much have memory bugs, ... having to do manual cleanups for 100% of your resources or for only 1%? ... This is a slight problem in languages like Java that have GC but no flow-control abstraction. ... Languages like Lisp and Smalltalk are another story: it's easy to have a with-open flow control construct that runs some subordinate code and then cleans up, and to have this be the standard way to use such things. ...
    (comp.programming)
  • Re: Applications "buying" resources
    ... Some applications already do that..e.g. ... given the amount of memory it has available. ... asked to relinquish resources, ... What if some other higher priority task comes along and/or the network ...
    (comp.arch.embedded)
  • Re: Fork bombing a Linux machine as a non-root user
    ... It is past time for the linux enthusiats touting linux as more ... systems limited resources (CPU time, physical memory, and so on). ...
    (Fedora)