Results 1 to 7 of 7

Thread: [RESOLVED] Done with matrix, how to clean it from memory

  1. #1

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489

    Resolved [RESOLVED] Done with matrix, how to clean it from memory

    I have a loop that dims a 20,20 integer array. That loop will be executed ~1000 times.

    At the end of each loop, would it be necessary for me to free the matrix from memory or such? With a recordset I have the habit of closing it and setting it to nothing to free up memory it has taken.

    Or will "Dim MatriceMask() As Integer" (at the beginning of each loop) free up the old matrix?

    Thanks for any info
    Chris

  2. #2
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: Done with matrix, how to clean it from memory

    It should just overwrite the existing memory with the new data... that's what the loop tells it to do. I don't think there are any real memory issues with just looping again without doing anything to it.

  3. #3

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489

    Re: Done with matrix, how to clean it from memory

    Something I forgot to specify is that this matrix starts (0,0) all the time. It actually gets redimmed to grow to 20,20 (or 25,25 or 20,25 - you get the drift).

    If that still shouldn't present memory issue, I'll keep it as it.

    thanks for your quick reply.
    Chris

  4. #4
    Hyperactive Member
    Join Date
    Aug 2006
    Posts
    367

    Re: Done with matrix, how to clean it from memory

    Erase MatrixMask
    Will free the memory currently allocated..

  5. #5

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489

    Re: Done with matrix, how to clean it from memory

    Great - thanks!
    Chris

  6. #6

  7. #7

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489

    Re: [RESOLVED] Done with matrix, how to clean it from memory

    Oh - that's what I was doing before I knew about the "Erase" command.

    Good to know.
    Chris

Posting Permissions

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



Click Here to Expand Forum to Full Width