Kbase P127378: Replacing certain strings with REPLACE in a LONGCHAR cause a GPF
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/4/2007 |
|
Status: Unverified
FACT(s) (Environment):
All Supported Operating Systems
OpenEdge 10.0x
OpenEdge 10.1A
SYMPTOM(s):
Replacing certain strings with REPLACE in a LONGCHAR cause a GPF
The error given is:
"The instruction at '0x7c910e03' referenced memory at '0x703c2009'. The memory could not be 'written'."
The code below causes the GPF to occur:
DEF VAR clong AS LONGCHAR.
cLong = REPLACE(cLong, '<control>', '<ttcontrol>').
CAUSE:
Bug# OE00131212
FIX:
Upgrade to OpenEdge 10.1A02 or later.
A workaround is to make sure that the the new substring is less or equal to the length of substring to replace.
Example:
REPLACE '<control>' with '<ttctrl>' instead of '<ttcontrol>'