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

    Free memory with a Vb app

    Does anybody know how to free memory in a vb app.
    I found a vbs file wich contained:
    FreeMem = Space(24000000)

    I would like to do about the same in vb

    thnx


  2. #2
    Join Date
    Oct 1999
    Location
    CA
    Posts
    91

    Re: Free memory with a Vb app

    This isn't freeing memory, it's taking it up, majorly. It's creating a string consisting of 24M spaces and assigning it to the variable "FreeMem".
    (Which, by the way, would be a good example of a bad variable name.)

    Aside from that, I can't really awnser your question, other then to unload unused forms, make variables only as big as nessary, etc.

    BrewGuru99


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