If variable profiling does not solve the problem, you might check for the use of faulty recursion in the program. Once execution recurses, variables in the calling context can be trapped until execution returns to the calling context. This can occasionally occur inadvertently when a collection of functions/methods call each other in complex ways.