Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


ASP with COM objects

Posted on 1999-07-23
Medium Priority
Last Modified: 2013-11-20
Hi everybody,
  I have tried create web client which is using ASP.
When I'm calling 'CreateObject(e.g. ISum)' in ASP script I receive correct results. But process 'inetinfo' has kept all dlls of this component (e.g. ISum). When I close web client or timeout is finished, 'inetinfo' has still kept dlls. I must kill this process or restart PC.

Can you explain? thanks
Question by:mizera
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 1311163
inetinfo.exe is your Internet Information Server process.  When you use in-process COM objects (DLLs) in your ASP script, they must be loaded into the process asking for them (in this case inetinfo.exe).

First I would make sure that your ASP script releases the COM objects correctly (set obj = nothing) when you are done with them.

If you are doing that properly, then I am guessing that inetinfo.exe keeps the DLLs in memory to save time.  That is, you just ran a script that used the DLL, chances are high that the next person connecting to the web site will run the same script that needs the same DLL.  To save on processing time, inetinfo.exe may keep the DLL in memory so it doesn't have to re-load it a second time (or all the other times for all the other people connecting to your web site).


Accepted Solution

lamia earned 300 total points
ID: 1311164
if you use "Set obj=nothing" then you are releasing the object but there is no way to tell when the IIS will release the dll. instead of killing the process or rebooting, just go to the IIS manager and stop the services and then start them again.

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question