Without code I can only mumble generalities like:
In reply to Re: Subroutine Memory Leak by eXile in thread Subroutine Memory Leak by gopika77