Print Page | Close Window

Arrays - cleanup, memory release?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=28281
Printed Date: 02 April 2026 at 12:52am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Arrays - cleanup, memory release?
Posted By: klr3
Subject: Arrays - cleanup, memory release?
Date Posted: 24 January 2010 at 9:17pm
Hi!
 
The lastest versions of the forum, arrays are used instead of regular recordsets, which is really great and mucho fast, but I wonder if WWF does any "cleanup" and releases the memory used in the arrays?
 
Something like this example (marked with red) at the end of an array:
 
<%
If isArray(ArrayRecords) Then
for = ArrayFirst to ArrayTLast
intArray1 = saryS2HLTRecords(0, ArrayLoop)
intArray2 = saryS2HLTRecords(1, ArrayLoop)
Next
Erase (ArrayRecords)
End if
%>
 
Kind Regards,



Replies:
Posted By: WebWiz-Bruce
Date Posted: 25 January 2010 at 10:40am
This is not really needed as pages should load in under 0.05 seconds, so the array would only be in memory for a few milli seconds anyway. 

Also the Erase statement does not release memory, all it does is zero out the elements in the array, but the array memory would remain allocated for all elements and continue to exist with the same size .


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net