Here's the problem I am trying to solve. I want to be able to call (from Rexx, FWIW) one or more entry points in a C++ program multiple times, and have each call after the first find the heap and statics as the previous call left them.
In other words, if the Rexx called entry point A and then entry point B, on entry to B, the statics and heap would be as they were on exit from A. Will CEEPIPI let me do this? It looks to me like CEEPIPI(init_sub) will let me do this. Is that correct? CEEPIPI looks IBM-complicated, of course. Is there an easier way to accomplish what I want? Something with DLL linkage? The CEEPIPI doc talks mostly about performance. That's one of the reasons I wonder if this is the wrong approach. I "get" why pre-initialization would improve performance, and improved performance is of course a Good Thing, but that is not my primary goal. The primary goal is being able to put things in the heap and in statics and use them on subsequent calls. There would typically be half a dozen or so calls, so improving performance is not a big consideration. No, an "anchored" GETMAIN is not sufficient. The C++ code makes extensive use of library functions such as map, which is tightly integrated with the language heap. Thanks, Charles ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
