[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Implicitly created TTs not deleted when returning with an error

  • Thread starter Thread starter Ken McIntosh
  • Start date Start date
Status
Not open for further replies.
K

Ken McIntosh

Guest
FYI - Using DynObjects logging to analyze this shows that this is clearly a bug. This section depicts the scenario where no error is returned. Note that, correctly, the table and buffer are Delete Pended within the FINALLY block and, when no error is returned, the line of code the actual deletion occurs on is line 12 (below): RUN doTableLogic(INPUT-OUTPUT TABLE-HANDLE hTable, INPUT FALSE) NO-ERROR. DYNOBJECTS Created TEMP-TABLE Handle:1137 (doTableLogic D:\Work117\p05570_Untitled1.ped @ 0) Pool: DYNOBJECTS Created BUFFER Handle:1138 (doTableLogic D:\Work117\p05570_Untitled1.ped @ 0) IMPLICIT Table:ttTest Pool: DYNOBJECTS Delete Pending TEMP-TABLE Handle:1137 (doTableLogic D:\Work117\p05570_Untitled1.ped @ 31) DYNOBJECTS Delete Pending BUFFER Handle:1138 (doTableLogic D:\Work117\p05570_Untitled1.ped @ 31) IMPLICIT DYNOBJECTS Deleted TEMP-TABLE Handle:1137 (D:\Work117\p05570_Untitled1.ped @ 12) DYNOBJECTS Deleted BUFFER Handle:1138 (D:\Work117\p05570_Untitled1.ped @ 12) IMPLICIT In this section you see that the table and buffer are not deleted until they're explicitly deleted(again) on line 46 in the scanLeaks procedure. DYNOBJECTS Created TEMP-TABLE Handle:1147 (doTableLogic D:\Work117\p05570_Untitled1.ped @ 0) Pool: DYNOBJECTS Created BUFFER Handle:1148 (doTableLogic D:\Work117\p05570_Untitled1.ped @ 0) IMPLICIT Table:ttTest Pool: DYNOBJECTS Created Progress.Lang.Object Handle:1149 (doTableLogic D:\Work117\p05570_Untitled1.ped @ 26) Progress.Lang.AppError DYNOBJECTS Delete Pending TEMP-TABLE Handle:1147 (doTableLogic D:\Work117\p05570_Untitled1.ped @ 31) DYNOBJECTS Delete Pending BUFFER Handle:1148 (doTableLogic D:\Work117\p05570_Untitled1.ped @ 31) IMPLICIT DYNOBJECTS Deleted-by-GC Progress.Lang.Object Handle:1149 (D:\Work117\p05570_Untitled1.ped @ 12) Progress.Lang.AppError DYNOBJECTS Deleted TEMP-TABLE Handle:1147 (scanLeaks D:\Work117\p05570_Untitled1.ped @ 46) DYNOBJECTS Deleted BUFFER Handle:1148 (scanLeaks D:\Work117\p05570_Untitled1.ped @ 46) IMPLICIT This was logged as: OCTA-7459.

Continue reading...
 
Status
Not open for further replies.
Back
Top