Consultor Eletrônico



Kbase P104836: Error 49 invoking the CALL 4GL statement.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

FACT(s) (Environment):

Solaris SPARC 8 64-bit
Solaris SPARC 9 64-bit

SYMPTOM(s):

Error 49 invoking the CALL 4GL statement.

SYSTEM ERROR: Memory violation. (49)

Stack trace shows a failure in HLC code.

HLC application uses malloc() to allocate memory.

The HLC application is compiled with the switch that generate 64-bit code, that is: -xarch=v9.

CAUSE:

The C code is not using the 64-bit version of malloc(). Because of that, pointers that receive the result of malloc() actually end up pointing to invalid memory.

FIX:

Ensure that you are using the 64-bit version of malloc(). Usually, including the following declarations at the very beginning of your C code will suffice:

#include <stdlib.h>
#include <malloc.h>