How to avoid error in CEEGTST API ?

1,720 pts.
Tags:
AS/400
I have a CGI inquiry that goes into an error loop sometimes.

CEE0813 in CEEGTST API. But this is buried within some service program maybe several levels below the source code (?)

I can force the error now and it hits when writing the (final ?) *fini html output. Any hints for what I might try in order to avoid this ? Or how to dig deeper to find it ?



Software/Hardware used:
as400
ASKED: October 24, 2011  5:09 PM
UPDATED: March 19, 2012  1:00 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • aceofdelts
    Inching closer - I found a call to CEEGTST in the XXXWRKHTML program (procedure ?) in CGIDEV (& CGIDEV2) library. So it's an IBM program. Any experience or tips on digging through this ?
    1,720 pointsBadges:
    report
  • TomLiotta
    The source code for XXXWRKHTML is available, so you can probably debug just like any other program. Obtain the various source members, compile with debug enabled (if it isn't already) and dig in. How big is your output buffer (i.e., your constructed output)? I'd expect it would be limited to under 16MB. I wouldn't expect memory leaks to consume the heap since CGIDEV has been so widely used. I'd think more in terms of exceeding a 16MB limit first. But I see that XXXWRKHTML is using _C_TS_malloc() for its buffer allocations. In that case, the limit should be just under 2GB rather than 16MB. You might investigate including a call to _C_TS_malloc_debug() or _C_TS_malloc_info() before various allocations are done. That should output some info about how much memory is being used. Tom
    125,585 pointsBadges:
    report
  • aceofdelts
    Once you got me to focus on memory, it seems that the CGIDEV2 version uses a bigger allocation than the CGIDEV version. Not sure why my predecessors used CGIDEV but switching to CGIDEV2 fixed the problem (maybe it merely moved the problem based on that it seems to do a recalc of the allocation based on other values, but that works for me). Mike
    1,720 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following