|
Joe Lee wrote: > > I don't believe that will cause a problem since when the program ends > the 400 will clean up all the memory it was using. Joe, the system won't clean up memory until the activation group ends. RPG doesn't deallocate your storage at seton LR time. Justin, to ensure you deallocate your pointers, use a cancel handler. There's an example in the ILE RPG Programmer's Guide. Search for CEERTX. But for allocations, it's probably enough to have an exception handler. If you're on V5R1, put a MONITOR around the alloc-process-dealloc, and do the DEALLOC in the on-error. Otherwise, use a *PSSR. Any non-exception thing that would cause a cancellation would probably end the activation group. Unless it's the default activation group, in which case ... use a cancel handler.
As an Amazon Associate we earn from qualifying purchases.
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.