Results 1 to 3 of 3

Thread: Memory usage

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    116

    Question Memory usage

    I have created an application that uses a database with many different recordsets/tables. During the running of my app i notice the functionalities are getting slower. I am thinking that I maybe using up the RAM with my variables and controls etc....

    I thought i was fushing out the mem by using the code: Set rsRecordVar = Nothing

    Is there a way I can measure the amount of RAM a particular variable/control is using at one time. Just to allow me to identify the code area that causing the slow down.

    Thanx

    clax

  2. #2
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    With VB comes a handful of tools, including Process Viewer, Heap Walker, Spy++, etc. By using a combination of them, you can figure out how much RAM your app uses. It has to be an EXE or DLL to work properly.

    Use either Process Viewer or the App.hInstance property to get a PROCESS ID for your program. Then go to heap walker, and find your process in the list. It will show all data allocated. Watch this list and refresh it often to see how that all changes.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    116

    Thumbs up Thank you

    I didnt know about the apps u mentioned - ill have a look

    thanx again

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