× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




In RPG there are no memory leaks. Because an RPG program simply allocates ALL memory at once and simply never deallocates it (until it finishes the the OS throws the memory away).

In RPG we simply declare a big array with 30000 elements which is completely allocated as soon as the program starts.

In e.g. C, its more practice to allocate the needed memory explicitly, in chunks. So it's also natural to release it explicitly.

So in fact, we don't "leak" memory, we simply hold on to it (for no good reason actually).

To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Is RPG 'DEAD"
From: Tommy.Holden@xxxxxxxxxxxxxxxxxxxxx
Date: Wed, 18 Jun 2008 11:22:06 -0500

hey Steve ever hear of this great "new" command RCLACTGRP??? works the
same as a garbage collector...once again...how can you say it doesn't
exist?

also activation groups are NOT a memory leak. i've never seen (or even
heard of for that matter) of an activation group bringing down a
system...how about M$ crap? it's killed so many PC and hard errors than
any other stuff on the planet...

Thanks,
Tommy Holden



From:
"Steve Richter"
To:
"RPG programming on the AS400 / iSeries"
Date:
06/18/2008 11:05 AM
Subject:
Re: Is RPG 'DEAD"



On Wed, Jun 18, 2008 at 11:32 AM, Haas, Matt (CL Tech Sv)
wrote:
Steve,

I understand you like the MS Kool-Aid a lot but I don't understand the
memory leaks
comment. Are you saying RPG is inferior to other languages in that
regard because you
have to go out of your way to make them happen?

I think activation groups hide what are in fact memory leaks (
allocated memory which is not freed ). But then a lot of RPG code
does not use %alloc and pointers. The managed code feature of C#
makes the .NET framework and collection classes possible. The suite
of collection classes you see in Java and C# are not available in RPG.
that is because of the lack of a garbage collector.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


_________________________________________________________________
Check je Hotmail nu ook op je mobiel!
http://windowslivemobile.msn.com/BrowserServiceHotmail.aspx?lang=nl-nl

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.