[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Garbage collection for the sake of static temp-tables (in long-running _progres)

Status
Not open for further replies.
F

Fernando Souza

Guest
GC will not kick in if there are references to the object. In the case you provided, the .p has a reference to the object instance so GC won't kick in until that .p is released. Normally it would, at the end of the program, but because you have an object bound to the temp-table, to avoid causing failures, the AVM will wait until that object instance is deleted, to remove the dependency on the temp-table, so you are not left with an object that thinks it is still bound to a temp-table after the temp-table has been deleted. Whenever you have procedures/objects bound to a temp-table, you will need to delete the procedure/object that is bound to the temp-table/dataset once it is safe to do so. Or you can just set the object variable to the unknown value.

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