Xojo Conferences
XDCMay2019MiamiUSA

Memory leak or Absorption (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: HTMLViewer Options
Next thread: Why I've returned my license for a refund


FW: Special Valentine's Offer for Valentina - Beat the Price Increase!   -   Lynn Fredricks
  Memory leak or Absorption   -   Eric Richards
   Re: Memory leak or Absorption   -   Andy Dent
   Re: Memory leak or Absorption   -   Norman Palardy
   Re: Memory leak or Absorption   -   Terry Ford
    Re: Memory leak or Absorption   -   Dave Wooldridge
     Re: Memory leak or Absorption   -   Terry Ford
   Re: Memory leak or Absorption   -   Eric Richards
   Re: Memory leak or Absorption   -   Kimball Larsen
   Re: Memory leak or Absorption   -   Eric Richards
   Re: Memory leak or Absorption   -   M Pulis
   Re: Memory leak or Absorption   -   Eric Richards
   Re: OpenAsPicture leaks memory?   -   James Sentman

Memory leak or Absorption
Date: 30.11.07 15:12 (Fri, 30 Nov 2007 08:12:37 -0600)
From: Eric Richards
Hi -

With the talk of memory leak on the nug I was thinking,
wouldn't a more accurate term be memory absorption ?

When someone says " my app has a memory leak"
what comes to mind is there app is losing or has less
memory being used, not more.

This might sound strange, but does anyone
have an example that would show a "memory leak"
that works on Rb 5.5.5 and OS 9 ?

I just want to see for my self, first hand experience.

Thanks

Eric

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Memory leak or Absorption
Date: 01.12.07 02:40 (Sat, 1 Dec 2007 10:40:05 +0900)
From: Andy Dent

On 30/11/2007, at 11:12 PM, Eric Richards wrote:

> With the talk of memory leak on the nug I was thinking,
> wouldn't a more accurate term be memory absorption ?

Think of your app as a vital organ, slowly bleeding into the body
cavity.

The precious blood isn't going anywhere outside the body but is no
longer available and the loss of circulating blood plus the
accumulated leaked blood is causing problems with other things.

Hence, it's a leak.

(OK, blame too much House. Hope nobody was eating at the time but you
shouldn't do that because it results in crumbs in your keyboard).

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Memory leak or Absorption
Date: 01.12.07 02:53 (Fri, 30 Nov 2007 18:53:39 -0700)
From: Norman Palardy

On 30-Nov-07, at 6:40 PM, Andy Dent wrote:
> (OK, blame too much House. Hope nobody was eating at the time but you
> shouldn't do that because it results in crumbs in your keyboard).

The crumbs just soak up the coffee I spit on my keyboard when I read
some of the more outrageous or funny posts :)
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Memory leak or Absorption
Date: 01.12.07 03:09 (Fri, 30 Nov 2007 18:09:52 -0800)
From: Terry Ford

On Nov 30, 2007, at 5:40 PM, Andy Dent wrote:

>
> On 30/11/2007, at 11:12 PM, Eric Richards wrote:
>
>> With the talk of memory leak on the nug I was thinking,
>> wouldn't a more accurate term be memory absorption ?
>
> Think of your app as a vital organ, slowly bleeding into the body
> cavity.
>
> The precious blood isn't going anywhere outside the body but is no
> longer available and the loss of circulating blood plus the
> accumulated leaked blood is causing problems with other things.
>
> Hence, it's a leak.
>
> (OK, blame too much House. Hope nobody was eating at the time but you
> shouldn't do that because it results in crumbs in your keyboard).
>

A better anatomical analogy might be the difference between a non-
smoker [Non leaking application] and a smoker [ Leaking application].

As a person breathes, the lungs expand and contract as the air flows
in and out. After a period of time, the non-smoker's lungs retain the
same capacity. The smoker, over a period of time, loses that capacity
until the point that their health gives out and starts to die.

I speak from first hand experience in this matter.

Terry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Memory leak or Absorption
Date: 01.12.07 04:06 (Fri, 30 Nov 2007 19:06:36 -0800)
From: Dave Wooldridge
No one's yet posted the simplest metaphor of all: a leaky boat. Like a
memory leak, a leak in a boat takes in water.

Regards,
Dave Wooldridge
Electric Butterfly
http://www.ebutterfly.com

-------------------------------------

on 11/30/07 6:09 PM, Terry Ford wrote:

>
> On Nov 30, 2007, at 5:40 PM, Andy Dent wrote:
>
>>
>> On 30/11/2007, at 11:12 PM, Eric Richards wrote:
>>
>>> With the talk of memory leak on the nug I was thinking,
>>> wouldn't a more accurate term be memory absorption ?
>>
>> Think of your app as a vital organ, slowly bleeding into the body
>> cavity.
>>
>> The precious blood isn't going anywhere outside the body but is no
>> longer available and the loss of circulating blood plus the
>> accumulated leaked blood is causing problems with other things.
>>
>> Hence, it's a leak.
>>
>> (OK, blame too much House. Hope nobody was eating at the time but you
>> shouldn't do that because it results in crumbs in your keyboard).
>>
> A better anatomical analogy might be the difference between a non-
> smoker [Non leaking application] and a smoker [ Leaking application].
>
> As a person breathes, the lungs expand and contract as the air flows
> in and out. After a period of time, the non-smoker's lungs retain the
> same capacity. The smoker, over a period of time, loses that capacity
> until the point that their health gives out and starts to die.
>
> I speak from first hand experience in this matter.
>
> Terry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Memory leak or Absorption
Date: 01.12.07 06:33 (Fri, 30 Nov 2007 21:33:45 -0800)
From: Terry Ford

On Nov 30, 2007, at 7:06 PM, Dave Wooldridge wrote:

> No one's yet posted the simplest metaphor of all: a leaky boat.
> Like a
> memory leak, a leak in a boat takes in water.

Ah! Then all RS has to do is get the "Bilge Pumps" working better.

Terry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Memory leak or Absorption
Date: 01.12.07 16:29 (Sat, 01 Dec 2007 09:29:17 -0600)
From: Eric Richards


>
>The precious blood isn't going anywhere outside the body but is no
>longer available and the loss of circulating blood plus the
>accumulated leaked blood is causing problems with other things.
>
>Hence, it's a leak.
>
>(OK, blame too much House. Hope nobody was eating at the time but you
>shouldn't do that because it results in crumbs in your keyboard).
>
Ahh..

The OS leaks memory and something is eating or absorbing memory... ?

House, never watched it. Though I did watch X-Files when it was on. ;-)

The app with a memory leak is kind of like a blackhole,
sucks it up and doesn't let go.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Memory leak or Absorption
Date: 30.11.07 15:27 (Fri, 30 Nov 2007 07:27:35 -0700)
From: Kimball Larsen
On Nov 30, 2007, at 7:12 AM, Eric Richards wrote:

> Hi -
>
> With the talk of memory leak on the nug I was thinking,
> wouldn't a more accurate term be memory absorption ?

No, the correct term for this behavior is memory leak, and has been
for ages:

http://en.wikipedia.org/wiki/Memory_leak

>
> When someone says " my app has a memory leak"
> what comes to mind is there app is losing or has less
> memory being used, not more.
>
> This might sound strange, but does anyone
> have an example that would show a "memory leak"
> that works on Rb 5.5.5 and OS 9 ?
>
> I just want to see for my self, first hand experience.
>

Well, the basic gist of it is that your program allocates memory,
uses that memory, and then when done with it, does not free it up to
be re-used by the operating system. Thus, from the OS point of view,
your program is consuming more and more and more memory without
freeing it back up. This is why it is called a memory leak - because
it is from the point of view of the OS.

-- Kimball
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Memory leak or Absorption
Date: 30.11.07 15:51 (Fri, 30 Nov 2007 08:51:53 -0600)
From: Eric Richards

>Well, the basic gist of it is that your program allocates memory,
>uses that memory, and then when done with it, does not free it up to
>be re-used by the operating system. Thus, from the OS point of view,
>your program is consuming more and more and more memory without
>freeing it back up. This is why it is called a memory leak - because
>it is from the point of view of the OS.
>
Ahh I see, from the OS pov.

I guess from the app's pov its absorption.

Well good to know.

Thanks.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Memory leak or Absorption
Date: 30.11.07 16:00 (Fri, 30 Nov 2007 08:00:16 -0700)
From: M Pulis
Its all point-of-view. As far as the user, the OS and the system is
concerned, any app that continues to allocate RAM and does not
return the RAM to the system is a leak in that it drains the system
of its available RAM resource. The app leaks by losing track of and
not returning used RAM to the OS, like borrowing $5 every day from a
friend and never pays it back - such a person would be a leak to
their friends wallet. Another example - a leaky toilet does not
absorb the water, it drains the tank.

If I recall, setting a picture on a canvas leaked back then. Setup a
loop to cycle between two pictures on a canvas. I was trying to
create a winking eye effect with two pictures and a timer. The larger
the pictures and the shorter the period, the faster the leak.

Have fun taking your leaks!

:-)

Gary

On Nov 30, 2007, at 7:12 AM, Eric Richards wrote:

> Hi -
>
> With the talk of memory leak on the nug I was thinking,
> wouldn't a more accurate term be memory absorption ?
>
> When someone says " my app has a memory leak"
> what comes to mind is there app is losing or has less
> memory being used, not more.
>
> This might sound strange, but does anyone
> have an example that would show a "memory leak"
> that works on Rb 5.5.5 and OS 9 ?
>
> I just want to see for my self, first hand experience.
>
> Thanks
>
> Eric
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Memory leak or Absorption
Date: 30.11.07 16:17 (Fri, 30 Nov 2007 09:17:02 -0600)
From: Eric Richards
>
>If I recall, setting a picture on a canvas leaked back then. Setup a
>loop to cycle between two pictures on a canvas. I was trying to
>create a winking eye effect with two pictures and a timer. The larger
>the pictures and the shorter the period, the faster the leak.
>
>Have fun taking your leaks!
>
>:-)
>
I see.

Cool thanks.

Lol, yeah I'll have to make sure and have Rb "flush" the memory. ;-)

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>