Forum Post: Handling System Error: Memory Violation

  • Thread starter Thread starter MABeatty1978
  • Start date Start date
Status
Not open for further replies.
M

MABeatty1978

Guest
Is there a way to catch a memory violation and prevent it from killing Progress? I've got a Progress function that calls a C++ API. The function sends a request message and the API returns a reply message in a mqmptr.. Problem is the size of the reply message can vary from 0 byes, to 100MB. What I was hoping to do was to set the memptr size to a reasonable size that would catch MOST of the messages, in the ball park of 20000b. Then, if the memptr doesn't have enough memory to hold the reply, bump the memptr size up and try again. Unfortunately, it just seems that Progress dies on a Memory Violation. I've been tying to get it in a CATCH, which it does catch, but I can't figure out how to handle the error as Progress dies regardless of the CATCH. Thank you.

Continue reading...
 
Status
Not open for further replies.
Back
Top