home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2160 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.genie.net!usenet
  2. From: i.einman@genie.com (IAN J. EINMAN)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: My Avail allocates 400 bytes! Help!
  5. Date: 27 Jan 1996 21:58:26 GMT
  6. Organization: via GEnie Services (1-800-638-9636 or info@genie.com)
  7. Sender: i.einman@genie.com (IAN J. EINMAN)
  8. Message-ID: <4ee762$beb@rock101.genie.net>
  9. NNTP-Posting-Host: rock103.is.ge.com
  10.  
  11. Are you running KingCOn or something similar?
  12.  
  13. The memory is not being used by Avail.  It is being used by the review/history
  14. buffer of the shell, and is not being eaten.
  15.  
  16. Make a script that executes "Avail >NIL:" 10000 times, it will not eat 4 megs of ram.
  17. Try it...
  18.  
  19. first:
  20. SetEnv count 10000
  21.  
  22. then a script
  23.  
  24. T:TestScript
  25. ------------
  26.  
  27. Avail >NIL: FLUSH
  28. Eval >ENV:Count2 $count - 1
  29. Delete >NIL: ENV:Count
  30. Rename >NIL: ENV:Count2 ENV:Count
  31. If $count eq "0"
  32.    Quit
  33. Else
  34.    Execute T:TestScript
  35. EndIf
  36.  
  37. This will eat a LOT of ram while running since it's recursive, you
  38. could use a Skip/Lab command instead.  But my point is this will use a LOT of
  39. RAM, but after the whole thing is done...  you'll get it back.  It's not gone.
  40.  
  41.