May be of general interest:I changed all my subroutines to goto's and it seems like I have no more memory problems.
May be of general interest: