+ Reply to Thread
Results 1 to 3 of 3

Returning Allocated Memory

  1. #1
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Returning Allocated Memory

    Please Login or Register  to view this content.
    How does one return allocated memory once one is done with it?

    Steven Craig Miller
    Last edited by StevenM; 03-27-2012 at 01:31 PM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Returning Allocated Memory

    Hi Steven,

    I'm no master of arrays and memory, however you can wipe them by using Erase at any point in the code, e.g.
    Please Login or Register  to view this content.
    From some brief reading, it appears all other variables (other than objects) release their memory once the scope has changed or the macro ends. Objects should be cleared by setting them to Nothing
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Returning Allocated Memory

    Thanks! That is what I needed!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1