PUI crashing when calling QMHRCVPM
Posted: Tue Jan 24, 2017 10:14 am
I have a service program that if there is an error with SQL it will send a message to QSYSOPR, the pgm then waits for the message to be answered before continuing. It works fine for green screen/genie @ least haven't had any problems with it yet, however we just recently started using OA sessions,and found some problems with QMHRCVPM API.
wrote a small program to demo the problem, and it mimics the service pgm which i attached. If you comment out the cmd(command:%len(%trimr(command))); lines the pgm works fine.. However, if you leave them in the client side crashes on QMHRCVPM call (the message it gives for crashing is PROFOUNDUI is already in lib list), but running in debug you can see the program waits for a message, i can answer it and the pgm continues until it crashes later when it goes to EXFMT, since the client was disconnected.
Thanks,
Paul Kenosky
wrote a small program to demo the problem, and it mimics the service pgm which i attached. If you comment out the cmd(command:%len(%trimr(command))); lines the pgm works fine.. However, if you leave them in the client side crashes on QMHRCVPM call (the message it gives for crashing is PROFOUNDUI is already in lib list), but running in debug you can see the program waits for a message, i can answer it and the pgm continues until it crashes later when it goes to EXFMT, since the client was disconnected.
Thanks,
Paul Kenosky