Results 1 to 5 of 5

Thread: How do I allocate memory for my program

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Location
    Or
    Posts
    316
    I have a bit of a problem. I have written an app. for our office and it works fine. My problem however, is with a piece of old 16 bit software that everyone in the office also runs. The stupid thing seems to lock all of a computers memory. For example, I run a PIII 700 with 256 MB of RAM and a 25 GB harddrive, and the rogue app pushes my system resources down to 20%. Now the app. that I wrote is really light and uses one .dll that I wrote for it but when this 16 bit program is running, it just won't work right. I am wondering if there is a way that I can allocate my own amount of virtual memory so that it will run, even if this other program is running. It must be able to be done, because MS's software runs (though a bit slower), and generally can even free up some of those capture resources. Any suggestions??

  2. #2
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    I've got no idea how to put this into VB, but if you're a good programmer, you'll be able to figure it out:

    http://msdn.microsoft.com/library/ps...emman_8ptk.htm

    Courgettes.

  3. #3
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I think you've got the wrong end of the stick, somewhere your program is using all the resorces, virtual memory does exactly what it says on the tin, it's not real memory, it's virtual, it's a reference where resorces can be allocated. something in your program is taking up all the resorces, you'll have to find out what it is.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Location
    Or
    Posts
    316
    Sam,

    I know that it isn't my program because I can see the difference when the other app is running. Also, my app runs fine when I have a number of any other apps open. And to be honest, I'm not even so sure if it is a memory problem, because I wrote a small function to optimize the RAM on my Computer and it helped, as far as freeing up resources, but there is still something in this 16 bit app that is slowing down my app to a crawl. And the problem isn't just my app. The problem extends to some older dos programs that I have, MS Outlook, and I get terrible preformance when I am running Frontpage. Any other suggestions?


  5. #5
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    not unless you're buggering about with thread priorities for some reason.

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