Consultor Eletrônico



Kbase P99861: Does using the same handle variable for different static buffer handles cause a memory leak?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/01/2005
Status: Unverified

GOAL:

Does using the same handle variable for different static buffer handles cause a memory leak?

FIX:

Using the same handle variable to store the :HANDLE attribute for different static buffers does not cause a memory leak. For example, the following code uses the same variable to store the handle of both the Customer and Order buffers:

DEFINE VARIABLE hBuffer AS HANDLE NO-UNDO.
ASSIGN hBuffer = BUFFER Customer:HANDLE.
/* Code goes here to manipulate hBuffer */
ASSIGN hBuffer = BUFFER Order:HANDLE.
/* Code goes here to manipulate hBuffer */