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



I indicated in one of my previous posts how to reproduce the issue. If you
are in the same program and issue the error there it is not a problem.

The problem occurs because you have an error thrown in a called program or
service program which destroys the activation group and the next time the
system tries to call the program or service program the address is invalid
and you get a "Attempt made to reference to an object that no longer
exists".

Again, why destroy an activation group just because an error occurred?

On Wed, Oct 6, 2010 at 5:45 PM, Pete Hall <pete@xxxxxxxxxxxxxx> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2010-10-06 11:35, Alan Campin wrote:
We also ran into big problems with errors in named activation groups.
Every
time that an error is thrown in a named activation group the system
destroys
the activation group and when you try to go back to it the program
crashes
because the pointer is now pointing at a object that doesn't exist
anymore.

That's odd. I think something else must be happening. I have a program
that runs in a named activation group, and writes data to a QNTC network
share. It doesn't attempt to open the output file until the first buffer
is ready to write. It's just simpler that way, since failures, while
they do happen, are rare. If an error occurs, usually because the output
file aleady exists (operator error) the program issues an escape message
to itself, and waits for the operator to investigate and respond by
canceling the program. That causes the uncommitted transaction to be
rolled back, and the activation group to be destroyed, all by default.
The operator then disposes of the pre-existing output, retrys the failed
operation, and everything is happy. The job itself remains active.
Commit doesn't run until the program completes without error, so the
program either does everything or nothing. Either is fine in terms of
system requirements. It's been working just fine for 5 years or so now.
(v5.4.0)

- --
Pete Hall
pete@xxxxxxxxxxxxxx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkytCfoACgkQXczQcKdXKg6qTwCfXWizVKyGZhpkh+ZxrPoQf2p6
A2oAoMHpkUXpo82sGPsLnI8XgmiiikEH
=GDYb
-----END PGP SIGNATURE-----
--
This is the RPG programming on the IBM i / System i (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.



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.