Xref: utzoo comp.sys.mac.apps:2112 comp.sys.mac.hypercard:4803 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!dogie.macc.wisc.edu!uwvax!jongminp@cae.wisc.edu From: jongminp@cae.wisc.edu (Jong-Min Park) Newsgroups: comp.sys.mac.apps,comp.sys.mac.hypercard Subject: FoxBase+/Mac 2.00 and XFCN call (novice question) Message-ID: <11551@spool.cs.wisc.edu> Date: 23 Oct 90 21:48:56 GMT Sender: news@spool.cs.wisc.edu Organization: U of Wisconsin Lines: 26 I am currently using FoxBase+/Mac 2.00 at my educational site, where they only have a manual for PC version (:-<. I need to create a string mapping function, so I made my first XFCN, which reads a string argument and returns a string. The problem is, everytime I 'CALL TO result WITH arg', heap memory is used up, and after several hundred calls, FoxBase crashes. My question is, does Foxbase disposes of the result handle that my XFCN returns? I used PasToZero function prior to returning the result string, but it wouldn't make sense to dispose of the handle from XFCN, then return it as a result, would it? PasToZero is the only function I used that allocates a heap. Somebody has to dispose of the return handle, but does Foxbase do that after calling my XFCN? Is there something I missed, such as doing HUNLOCK or setting to PURGEABLE to the heap? (I've referred to an example program downloaded from anon. ftp etc. and am sure I've followed the example) Please reply to jongminp@cae.wisc.edu if you know the answer or at least have a Mac version of the manual (what 'CALL' command is doing, etc.) Thank you. Jong-Min