Welcome, Guest. Please login or register.

Author Topic: Does workbench 3.1 ever reclaim memory back?  (Read 2857 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Does workbench 3.1 ever reclaim memory back?
« on: May 09, 2009, 11:07:45 AM »
Surely it depends on whether the application in question frees its memory resources once it has finished with them.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Does workbench 3.1 ever reclaim memory back?
« Reply #1 on: May 09, 2009, 11:15:27 AM »
Quote
sim085 wrote:
This means that if a program was not written to free memory when closing then the only option was to re-start the computer in order to reclaim that memory back right!?

Correct AFAIK. I wrote a slideshow application in SDL and forgot to free one of the SDL surfaces used for scaling the image. The memory footprint gradually got larger and larger and I had to just reboot (and then fix the app ;-) )

Quote
sim085 wrote:
Also what happens when this gets to 0Mb?

There's no more RAM left, so you won't be able to do anything which requires the allocation of any memory. That means you can't open any applications, any currently running applications can't do anything which requires them to use more RAM than they have currently allocated, and if some OS function requires any additional RAM then that won't work either. The precise effect of this will depend on what software/OS you are running and what you are actually trying to do.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Does workbench 3.1 ever reclaim memory back?
« Reply #2 on: May 09, 2009, 11:24:13 AM »
You're welcome :-)

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10