[Javascript] Clean up memory space used by variable

TomMallard mallard at serv.net
Thu Aug 16 09:29:32 CDT 2001


For ssjs use null, it's a best practice to destroy any objects in page scope
because they will linger until the session times out or is abandoned
(server-side).

myMail = null;

tom mallard
seattle
----- Original Message -----
From: "Rupp Thomas (Illwerke)" <thomas.rupp at illwerke.at>
To: <javascript at LaTech.edu>
Sent: Thursday, August 16, 2001 6:46 AM
Subject: AW: [Javascript] Clean up memory space used by variable


> My ASP file has the suggested line (Set myMail = Nothing) after sending
the
> mail.
> But I don't know if this is necessary or not.
>
> Thomas Rupp
>
> > -----Ursprüngliche Nachricht-----
> > Von: Beekman, Ron [SMTP:rbeekman at hiscom.nl]
> > Gesendet am: Donnerstag, 16. August 2001 15:40
> > An: 'javascript at LaTech.edu'
> > Betreff: [Javascript] Clean up memory space used by variable
> >
> > Hello, I use some server-side JavaScript for sending an email.
> >
> > <%
> > var myMail = Server.CreateObject("CDONTS.NewMail")
> >
> > ... some more coding ...
> >
> > myMail.Send()
> > %>
> >
> > How can I free up the memory space after the email is sent?
> >
> > In VBscript, "set myMail = Nothing" is used to free up the memory space.
> > Is there any need for this in JavaScript?
> >
> > Any suggestions are welcome, TIA!
>
>
> --------------------------------------------------------------------------
----------------
> Dieses eMail wurde auf Viren geprueft.
>
> Vorarlberger Illwerke AG
> --------------------------------------------------------------------------
----------------
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
>




More information about the Javascript mailing list