Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uflorida!haven!uvaarpa!virginia!uvacs!hsd From: hsd@uvacs.cs.Virginia.EDU (Harry S. Delugach) Newsgroups: comp.sys.mac.hypercard Subject: Garbage collection in XCMDs Keywords: Handle Message-ID: <2795@uvacs.cs.Virginia.EDU> Date: 30 Oct 88 22:54:23 GMT Organization: U.Va. CS Department, Charlottesville, VA Lines: 13 I am a beginner at creating XCMDs in LSC 3.0. I am implementing a few of my choice Home stack interpreted functions. I am still learning simple string manipulation; how to allocate enough space for the return string, etc. Each time my XFCN is called, I allocate a new Handle for a return value, which I then fill up with a zero-terminated string. My question is: how does that handle ever get disposed of? If I dispose of it before exiting the XFCN, that just throws away my return value. Is there a way to mark the handle for later purging? -- Harry S. Delugach Dept. of Computer Science, Univ. of Virginia, Charlottesville, VA 22901 U.S.A. INTERNET: hsd@cs.virginia.edu BITNET: hsd2x@virginia UUCP: ..!uunet!virginia!uvacs!hsd CIS: 72727,2363