tracing memory alloc/dealloc

From: Sarah Officer <officers_at_nemesis.tucson.saic.com>
Date: Tue, 14 Feb 1995 13:26:12 -0700 (MST)

We have written an application in STk which reads input from a file into
strings, manipulates them, then writes the strings to an output file.
That output file is the input to the next string manipulation file, and
so on. We are having a problem that some of the strings are being trashed
eventually. Instead of a string "dog", we might see a bunch of parentheses
or names of object types we have created, etc. Where and when this happens
is very changeable (adding a few lines of debug code can make the error
disappear for a while). We haven't been able to come up with a small test
case that shows the error reliably. By the way, we have created some
STk extensions and we are using STklos. As far as we can tell, the error
is unrelated to this.

Is there some way in STk to track memory allocation/deallocation so that we
can determine when memory is being trashed? Has anyone had similar problems?
How did you solve it? Any suggestions?

Thanks

Sarah Officer
officers_at_aries.tucson.saic.com
Received on Tue Feb 14 1995 - 21:25:29 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST