×
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.
What the heck do collections have to do with memory leaks? If you create a large collection in Java and don't do anything with it, it takes up memory as long as the thread that created it is running. Garbage collection will not free it up.
I've seen plenty of memory (and other resources) leaks in Java apps that require the JVM be restarted to recover from. It's actually easy to create leaks in Java but you have to go out of your way to do it in RPG.
Matt
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Steve Richter
Sent: Wednesday, June 18, 2008 12:05 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Is RPG 'DEAD"
On Wed, Jun 18, 2008 at 11:32 AM, Haas, Matt (CL Tech Sv)
<matt.haas@xxxxxxxxxxx> 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.
As an Amazon Associate we earn from qualifying purchases.