Consultor Eletrônico



Kbase P168226: Memory Violation when accessing unavailable buffer using EXPORT statement
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   8/16/2010
Status: Unverified

SYMPTOM(s):

Crash when accessing unavailable buffer using EXPORT statement

GPF when exporting unavailable buffer

Memory Violation when accessing unavailable buffer using EXPORT statement

SYSTEM ERROR: Memory violation. (49)

Progress Stack Trace from prow32.dll:

rnexport

Code to demonstrate the problem:

DEFINE TEMP-TABLE tt
FIELD f1 AS CHAR.
OUTPUT TO test.txt.
FIND FIRST tt NO-ERROR.
EXPORT tt.
OUTPUT CLOSE.

FACT(s) (Environment):

All Supported Operating Systems
OpenEdge 10.2B
OpenEdge Category: Language (4GL/ABL)

CAUSE:

Bug# OE00198393

FIX:

To work around this problem simply place an IF AVAILABLE THEN... condition prior to the EXPORT statement:

e.g.
DEFINE TEMP-TABLE tt
FIELD f1 AS CHAR.
OUTPUT TO test.txt.
FIND FIRST tt NO-ERROR.
IF AVAILABLE tt THEN
EXPORT tt.
OUTPUT CLOSE.