Posted by Pete on July 26, 2000 at 17:48:45:
In Reply to: class and mem use? posted by hr on July 26, 2000 at 11:39:25:
I suspect that the answer may lie in the nature of the runtime stack. I'm not positive about this, but it's my best guess:
I'll bet that the program holds on to the memory which the runtime stack has requested. If that's the case, the memory from the object in your first function is being returned to the stack to be reused by future functions, but is not returned to the operating system.
Again, that's just a best guess. :-)
- pete