>As you notice that I have to close the cursors, this is a simple logic and I am clearing up there and then, there maybe complicated logic inbetween the mover and closing of the cursor.
>
>Is there any way that this can be may self garbage collecting?
If you own SDT, there is a method of the utility class named CloseOpenedTables(). I've used it quite a bit over the years to do just this.
Del