CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: MEMORY PROBLEM

  1. #1
    Guest

    MEMORY PROBLEM

    Hi all,
    I am getting an error message in MS-ACCESS. When I am trying to run my application developed using VBA I get an Error message "Out of Memory 2001" Can any body help me why this occur. Also this does not occur always it happens after the application runs continously for some days. As my app should run all the time I could see this as a bug in MS-ACCESS. Can any one clarify this.
    Thanks

    Srini


  2. #2
    Join Date
    Apr 1999
    Location
    Brooklyn, NY USA
    Posts
    171

    Re: MEMORY PROBLEM

    It looks like you forget to close database objects when you don't need them anymore. If you open recordset with OpenRecordset method it's good idea to close it with Close method and set to Nothing. Do you do this? If yes, I'm sorry.
    Vlad


  3. #3
    Guest

    Re: MEMORY PROBLEM

    Thanks for that info. I did closed all the database objects and set them to nothing. What else could be the problem ? Its strange thing that it occurs after 3-4 days after running the app continously.

    Thanks any how for the help.

    Srini


  4. #4
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: MEMORY PROBLEM

    Are you using arrays? (redim them to 0 when you don't use them)

    Crazy D @ Work :-)

  5. #5
    Guest

    Re: MEMORY PROBLEM

    No, I am using DAO. I am using many database objects. I am closing and setting them to nothing.

    Srini


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

Featured