Kbase P154565: Objects not deleted from memory immediately
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  4/2/2010 |
|
Status: Verified
SYMPTOM(s):
Object not deleted from memory immediately
Objects are not deleted when expected.
Destructor is not run when expected.
Memory leak with objects inheriting from System.Object.
FACT(s) (Environment):
OpenEdge 10.2x
CAUSE:
This is a expected behavior
FIX:
If a class inherits from Progress.Lang.Object, OpenEdge garbage collection is used. OpenEdge garbage collection tries to clean memory almost immediately when a object is not needed, running the code in a destructor.
If a class inherits from System.Object, .NET garbage collection is used. .NET garbage collection works differently than OpenEdge garbage collection, cleaning memory at different intervals. In this case, the objects stay in memory for much longer. However, they will eventually be deleted.