Results 1 to 3 of 3

Thread: Memory

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2001
    Location
    Wolverhampton
    Posts
    3

    Memory

    The computers memory is piling up! resulting in out of memory.

    I have closed all databse objects and recordsets and set them to nothing but this does not seem to reduce the memory.

    Can any one assist?
    Last edited by caddick98; Oct 18th, 2001 at 05:59 AM.

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    Have you set things to Nothing when you have finished with them?

    eg;

    Set MyRecordset = Nothing
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  3. #3
    jim mcnamara
    Guest
    IF it gets worse as you run the code again & again, you may be using a control with a memory leak, like MSChart before VB SP6.

    Otherwise, your code has a memory leak. For every

    Set statement

    there should be another

    Set whatever = Nothing

    at the end of the function.

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