Kbase P85783: GET-STRING on MEMPTR returns strange characters
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  1/13/2009 |
|
Status: Verified
SYMPTOM(s):
GET-STRING on MEMPTR returns strange characters
Initializing a MEMPTR and outputting it to a file reveals strange characters, for example:
øJ[·øJ[·
MEMPTR is initialized with SET-SIZE but no data has been assigned to it
Assigning data to the MEMPTR with PUT-STRING removes the strange characters
FACT(s) (Environment):
Progress 9.1x
OpenEdge 10.x
UNIX
CAUSE:
When Progress initializes the MEMPTR, the memory allocated is not automatically cleared therefore the memory area can still contain left-over data
FIX:
After initializing the MEMPTR, use the following code to clear remaining data:
PUT-STRING(mptrTest ,1) = "".