× 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.


  • Subject: RE: I hate Activation Groups....
  • From: Joel Fritz <JFritz@xxxxxxxxxxxxxxxx>
  • Date: Thu, 3 May 2001 09:05:20 -0700

It's terrible what you can learn when you actually read the manuals
carefully.  I probably need to myself. <g>

I know I've been bitten by the static storage thing before.  I expected
static variables to go away when their program ends with LR on, but they
sure don't unless their program's activation group also goes away.  

I'm definitely not one of the hot half dozen, and in my environment--no
commitment control, shared ODPs more or less forbidden by shop standard--I
haven't found much need for named activation groups.   

> -----Original Message-----
> From: John Taylor [mailto:john.taylor@telusplanet.net]
> Sent: Thursday, May 03, 2001 8:37 AM
> To: RPG400-L@midrange.com
> Subject: Re: I hate Activation Groups....
> 
> 
> Buck,
> 
> I don't consider myself one of those half-dozen leading edge 
> programmers,
> but I do use a combination of named and *NEW AG's extensively.
> 
> In addition to the ODP sharing that you mentioned, AG's have important
> consequences for commitment control boundaries, and static 
> storage. The
> implications for commitment control should be obvious enough, 
> but not many
> people seem to be aware of how static storage is handled in a 
> named AG.
> 
> Briefly, when an ILE application is activated within a named 
> AG, static
> storage is initialized for all modules within the 
> application, including the
> linked service programs. Now, when you exit that application 
> --even with a
> hard leave such as RPG's LR-- the storage is not released 
> back to the system
> until the activation group is destroyed. Let's see what this 
> means from a
> practical standpoint, by using a typical example of an 
> application that uses
> a single AG:
> 
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.