[thelist] DLL crashing in IIS

Rob Smith rob.smith at THERMON.com
Mon Jul 7 11:01:21 CDT 2003


==> I know of that you can explicitly tell the 
==> browser not to cache are ASP files.

=>Is that something that has to be set when the DLL is compiled?

Definitely not. Go into IIS > Right-Click your site to Properties > Home
Directory. Make sure your Application Settings have been "create"d > Check
"Run in separate memory space" > Click Configuration > Process Options tab >
Enable the radio button that says "Do not cache ASP files"

==> You could also check the DLL and see if its managing the 
==> data appropriately
==> (i.e. allocating, destroying).   

=>Again, is this something that needs to be set in the code before the DLL
is compiled?

This is something only you can determine in the code before you create or
compile your DLL. Just seek out the documentation for whatever language your
using and look up memory allocation/de-allocation and see what it says. Is
this done automatically, or do you have to do it?

=>How does one properly release it in the code that calls it?
=>Would the ActiveX control have to release it or would that be done in
=>the code (VBScript or HTML) that calls the ActiveX control?

This is usually accomplished by setting one of the following options:

Recordset.Close()
Set Variable = nothing      // nothing is a reserved key word

...or however you can.

I hope this makes sense,

Rob



More information about the thelist mailing list