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



If you use Monitor to catch an unexpected error, and you want to end processing upon encountering that error, I believe you should pass back a parameter to tell the caller that the program failed, so that program can return to its caller, also passing back the error parameter if needed. Or, the callers may be able to check for a situation that would tell it that processing completed normally. One example might be that the process loads a file, so the caller won't continue on unless that file has > 0 records.

-Kurt

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Mike Wills
Sent: Friday, February 24, 2012 10:32 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Weird program errors that I can't duplicate. Maybe activation group problems?

Okay, more information on this. As I am troubleshooting this. When the program crashes (probably due to this other bug), something stays running which keeps a record locked. When a program crashes (somewhat elegantly with a monitor statement) how do I ensure that the other used modules end as well?

--
Mike Wills
http://mikewills.me


On Thu, Feb 16, 2012 at 11:26 AM, Mike Wills <mike@xxxxxxxxxxxx> wrote:

Two users have been reporting the same problem with one of my
applications. I have a very complicated subprocedure that calculates
the taxes on an invoice. I had one of the users try a few things, but
I can't the program to crash on-demand (though it did several times
though the testing). The error I get is "Receiver value too small to
hold result." The user can log out and in again and retry it on the
same invoice and it works flawlessly. Thus my thought it may be activation group problem.

My modules are compiled with the H-Spec of

H nomain bnddir('ARBNDDIR') option(*srcstmt:*nodebugio)

My programs are complied with the H-Spec of

H ActGrp(*caller) BndDir('ARBNDDIR':'MODULES') DftActGrp(*no)

I am by no means an expert with activation groups. Should I change
this to a named activation group? ActGrp(ARACTGRP)

--
Mike Wills
http://mikewills.me

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

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.