Consultor Eletrônico



Kbase P154735: Handles remain allocated after killing prowin32.exe when running .NET forms
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/10/2009
Status: Unverified

SYMPTOM(s):

Handles remain allocated after killing prowin32.exe when running .NET forms

CLR Profiler tool shows handles remaining allocated after prowin32.exe process exits

FACT(s) (Environment):

Windows
OpenEdge 10.2x

CAUSE:

There is no way for the ABL to actually release or clean up objects from the Common Language Runtime (.NET Bridge). Once all references are removed from an object in the ABL it is up to the .NET runtime to decide when to garbage collect those objects.

Once the prowin32.exe session, which started that instance of the bridge, ends however the bridge and all allocated objects and handles are released.

FIX:

As a matter of good practice always clean up after yourself, making sure to remove all references to objects no longer in use. While you can't control when the actual deallocation will happen you can at least make sure your obsolete objects are cleaned up when it does happen.