Kbase P21260: Progress freezes Making a .dll call to a third party .dll
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/14/2003 |
|
Status: Unverified
FACT(s) (Environment):
Progress 9.x
SYMPTOM(s):
Progress locking up making a call to a .dll.
CAUSE:
The DLL required two parameters and the second parameter was a buffer (32 bytes in size). The source code was passing the parameter as a return parameter instead of an input-output parameter and also was not allocating space for the buffer.
FIX:
Modify the source code so that the external procedure definition specified that the second (i.e. output) parameter was defined as INPUT-OUTPUT instead of RETURN, do a FILL() function against the variable that was being passed as the second parameter so that the 32 byte buffer was allocated then modify the actual RUN statement so that the INPUT-OUTPUT phrase was added to the second parameter.