Results 1 to 2 of 2

Thread: Releasing memory with Redim Preserve

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 1999
    Location
    Houston
    Posts
    48
    I am using large arrays with up to 500,000 elements. After each iteration, I can release about 3,000 elements to memory with

    Redim Preserve Array(size-3000)

    How can I assign the newly released memory to work on the remaining floating point operations that need to be done?

    pete

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    ??????????????????

    the released memory is handed back to the OS, which in turn will pass back whatever resources you need (assuming they exist) which is why it's good to release them where possible.

    I doubt floating point operations would benifit from more memory anyway, but they do benefit from spare CPU cycles, which is what you should be trying to free up (using more efficient algorithms) if your floating point math is running slow

    What problem are you actually experiencing?


    cheers
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

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