473,401 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

When is reference to DLL released

I'm writing a custom COM object used by certain pages on a site. During
development, I need to replace this dll periodically, but have found that is
in use and can't be replaced. This is true even after all browsers have
been closed, and sufficient time allowed for a session to expire. The only
thing I have found that works is to restart IIS thru the IIS mgmt console.

The object is used like this:

var vObject = Server.CreateObject('MyObject');
//do something with it
vObject = null;
Is there another way to replace this dll short of taking the entire site
down?

tia,

Bob M..
Jul 19 '05 #1
3 1330
IIS loads a reference into memory and does not release it until IIS is
restarted.

http://www.aspfaq.com/2087

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Bob Murdoch" <ra***********@erols.com> wrote in message
news:u1**************@TK2MSFTNGP09.phx.gbl...
I'm writing a custom COM object used by certain pages on a site. During
development, I need to replace this dll periodically, but have found that is in use and can't be replaced. This is true even after all browsers have
been closed, and sufficient time allowed for a session to expire. The only thing I have found that works is to restart IIS thru the IIS mgmt console.

The object is used like this:

var vObject = Server.CreateObject('MyObject');
//do something with it
vObject = null;
Is there another way to replace this dll short of taking the entire site
down?

tia,

Bob M..

Jul 19 '05 #2
It's ~possible~ that this will help, I suppose.
http://www.winguides.com/registry/display.php/667/

Ray at work

"Bob Murdoch" <ra***********@erols.com> wrote in message
news:u1**************@TK2MSFTNGP09.phx.gbl...
I'm writing a custom COM object used by certain pages on a site. During
development, I need to replace this dll periodically, but have found that is in use and can't be replaced. This is true even after all browsers have
been closed, and sufficient time allowed for a session to expire. The only thing I have found that works is to restart IIS thru the IIS mgmt console.

The object is used like this:

var vObject = Server.CreateObject('MyObject');
//do something with it
vObject = null;
Is there another way to replace this dll short of taking the entire site
down?

tia,

Bob M..

Jul 19 '05 #3

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:O7**************@TK2MSFTNGP10.phx.gbl...
It's ~possible~ that this will help, I suppose.
http://www.winguides.com/registry/display.php/667/


That would have been too easy.... No luck in going down that route.

Thanks anyway,

Bob M..
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: John Reese | last post by:
def uselessHash(filename): fp= open(filename) hash= 0 for line in fp: hash ^= hash(line.strip()) fp.close() # do I need this or is fp closed by ref count? return hash Consider the function...
13
by: Seth Spearman | last post by:
Hey guys, I have the following code: '****************************************************** If Not Me.NewRecord Then Dim rs As DAO.Recordset Dim strBookmark As String Set rs =...
10
by: Steven Blair | last post by:
Hi, Quick overview of the problem: public bool Something( out DataSet ds ) { bool ret=false; try {
20
by: Charles Law | last post by:
I have an application that creates a class. The class has unmanaged resources, so must end gracefully. How can I guarantee that the unmanaged resources are freed? I have looked at IDisposable,...
11
by: Dmitry | last post by:
Hi there, Just came across this problem and was wondering if someone can shed a light on it as it somewhat puzzles me. Suppose I have the following classes: Public Class CTest Private...
9
by: Simon | last post by:
Hi, I have written an ActiveX object to resize images and upload them to a database, this all works fine but when I close internet explorer the process iexporer.exe is still running in my task...
4
by: Johny_W | last post by:
hi guys, I have encountered a problem with IE automation (.NET 2.0, C#, mshtml, SHDocVw). I am writing a class for manipulating specific html pages with frames. It is supposed to be used from...
94
by: Samuel R. Neff | last post by:
When is it appropriate to use "volatile" keyword? The docs simply state: " The volatile modifier is usually used for a field that is accessed by multiple threads without using the lock...
44
by: Smokey Grindle | last post by:
I have a list box on my form, but I need to databind it to a data table that is a private member of the form's class... so I basically have Public Class MyForm priate m_MyTable as new datatable...
8
by: Jianwei Sun | last post by:
I have a question, it may sound stupid. In c#/Java , when you create an object on the heap and don't reference anymore, the memory will be cleared out when garbage collection walk thourough the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.