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



Hello Joe,

> The problem is that I would like these variables reinitialized each time
> the program is called, but they are not (even if the program is bound
> with ACTGRP(*NEW)!).

- If the activation group that the program is running in is destroyed - and
that's the case when activation group *NEW is specified and the program
terminates - the storage that the static variables occupies is reclaimed.
And likewise, when the program is called again, a new, unique activation
group is created and the program's static storage is initialized.

This is why it is possible to call programs running in *NEW activation
groups recursively - all otherwise conflicting resourses are scoped to
individual, non-persistent activation groups that are destroyed when control
is returned to it's caller (regardless of LR setting).

- So your ACTGRP(*NEW) approach actually should work - that would also make
sense in regard to Barbara's statement about ILE-ish behaviour being
preferred over RPG-ish ditto when designing this aspect of the RPG/IV
runtime. How did you test the ACTGRP(*NEW) setting?

Best regards,
Carsten Flensburg



###########################################
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.