Kbase P112458: Can't send BytesMessage > 128K bytes via the Sonic 4GL adapter on XP
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  13/02/2006 |
|
Status: Unverified
NEGATED FACT(s) Environment):
Windows 2000
FACT(s) (Environment):
OpenEdge 10.x
Windows XP
SYMPTOM(s):
Sending file contents as BytesMessage by using the SonicMQ 4GL adapter
Can't send message > 128K bytes
Using Publish/Subscribe JMS model
CAUSE:
Memory of mempointer not released after sending BytesMessage
FIX:
Release memory of mempointer after sending and deleting message object:
Example:
RUN createBytesMessage IN hSession(OUTPUT hMessage).
RUN setMemptr IN hMessage(mFile,1, FILE-INFO:FILE-SIZE).
/* send it */
RUN PUBLISH IN hSession(cTopicName, hMessage,?,?,?).
/* clean up to conserve JMS resources */
RUN deleteMessage IN hMessage.
/* release memptr memory */
SET-SIZE(mFile) = 0.
/* Show user that message was sent */